From 72c62d0fa41ac9c44a2135739012e9e5ced75b5f Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 8 Nov 2023 18:19:28 -0500 Subject: [PATCH] Deduplicate different quotes when comparing chapter names --- 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 a5871b65..50a333af 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(/[.:-'’`‛‘"‟”]/g, "").replace(/\s+/g, " "); } \ No newline at end of file