mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-01-01 22:29:20 +03:00
Don't remove trailing end bracket when not starting with bracket
This commit is contained in:
@@ -275,4 +275,20 @@ describe("Import segments", () => {
|
||||
category: "chapter" as Category
|
||||
}]);
|
||||
});
|
||||
|
||||
it ("0:00 G¹ (Tangent Continuity)", () => {
|
||||
const input = ` 0:00 G¹ (Tangent Continuity)
|
||||
0:01 G² (Tangent Continuity)`;
|
||||
|
||||
const result = importTimes(input, 8000);
|
||||
expect(result).toMatchObject([{
|
||||
segment: [0, 1],
|
||||
description: "G¹ (Tangent Continuity)",
|
||||
category: "chapter" as Category
|
||||
}, {
|
||||
segment: [1, 8000],
|
||||
description: "G² (Tangent Continuity)",
|
||||
category: "chapter" as Category
|
||||
}]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user