aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-11-08 18:22:41 -0500
committerAjay <[email protected]>2023-11-08 18:22:41 -0500
commita522e3065c55134112282d00617fee2805b43204 (patch)
tree9e9e44d6a26d34cc2cd94bd510a6fc6206108833
parent72c62d0fa41ac9c44a2135739012e9e5ced75b5f (diff)
downloadSponsorBlock-a522e3065c55134112282d00617fee2805b43204.tar.gz
SponsorBlock-a522e3065c55134112282d00617fee2805b43204.zip
Fix regex being treated as a range
-rw-r--r--src/utils/exporter.ts2
1 files changed, 1 insertions, 1 deletions
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