mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 14:37:23 +03:00
Move hyphen so it is not treated as a range
This commit is contained in:
@@ -30,7 +30,7 @@ export function importTimes(data: string, videoDuration: number): SponsorTime[]
|
|||||||
if (match) {
|
if (match) {
|
||||||
const startTime = GenericUtils.getFormattedTimeToSeconds(match[0]);
|
const startTime = GenericUtils.getFormattedTimeToSeconds(match[0]);
|
||||||
if (startTime) {
|
if (startTime) {
|
||||||
const specialCharsMatcher = /^(?:\s+seconds?)?[:()-\s]*|(?:\s+at)?[:()-\s]+$/g
|
const specialCharsMatcher = /^(?:\s+seconds?)?[-:()\s]*|(?:\s+at)?[-:()\s]+$/g
|
||||||
const titleLeft = line.split(match[0])[0].replace(specialCharsMatcher, "");
|
const titleLeft = line.split(match[0])[0].replace(specialCharsMatcher, "");
|
||||||
let titleRight = null;
|
let titleRight = null;
|
||||||
const split2 = line.split(match[1] || match[0]);
|
const split2 = line.split(match[1] || match[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user