Move hyphen so it is not treated as a range

This commit is contained in:
Ajay
2022-09-01 16:07:29 -04:00
parent 2b96fd5f57
commit 29ea112b4f

View File

@@ -30,7 +30,7 @@ export function importTimes(data: string, videoDuration: number): SponsorTime[]
if (match) {
const startTime = GenericUtils.getFormattedTimeToSeconds(match[0]);
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, "");
let titleRight = null;
const split2 = line.split(match[1] || match[0]);