diff options
author | Ajay <[email protected]> | 2023-11-08 18:19:28 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2023-11-08 18:19:28 -0500 |
commit | 72c62d0fa41ac9c44a2135739012e9e5ced75b5f (patch) | |
tree | 4f022dac0175f9d3cd662948190e1dbfd7955a33 | |
parent | 133ea360d7b757b3b0be45b36d54b6d14d90b332 (diff) | |
download | SponsorBlock-72c62d0fa41ac9c44a2135739012e9e5ced75b5f.tar.gz SponsorBlock-72c62d0fa41ac9c44a2135739012e9e5ced75b5f.zip |
Deduplicate different quotes when comparing chapter names
-rw-r--r-- | src/utils/exporter.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 |