From a522e3065c55134112282d00617fee2805b43204 Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 8 Nov 2023 18:22:41 -0500 Subject: [PATCH] Fix regex being 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 50a333af..40d0f257 100644 --- a/src/utils/exporter.ts +++ b/src/utils/exporter.ts @@ -106,5 +106,5 @@ export function exportTimesAsHashParam(segments: SponsorTime[]): string { export function normalizeChapterName(description: string): string { - return description.toLowerCase().replace(/[.:-'’`‛‘"‟”]/g, "").replace(/\s+/g, " "); + return description.toLowerCase().replace(/[.:'’`‛‘"‟”-]/ug, "").replace(/\s+/g, " "); } \ No newline at end of file