Skip to content

Commit

Permalink
Deduplicate different quotes when comparing chapter names
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Nov 8, 2023
1 parent 133ea36 commit 72c62d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, " ");
}

0 comments on commit 72c62d0

Please sign in to comment.