From 29ea112b4ff25c6b6cdc0677ddfe772a21cc2762 Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 1 Sep 2022 16:07:29 -0400 Subject: [PATCH] Move hyphen so it is not treated as a range --- src/utils/exporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/exporter.ts b/src/utils/exporter.ts index 2620a40f..4a55302a 100644 --- a/src/utils/exporter.ts +++ b/src/utils/exporter.ts @@ -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]);