mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 04:57:09 +03:00
Deduplicate different quotes when comparing chapter names
This commit is contained in:
@@ -106,5 +106,5 @@ export function exportTimesAsHashParam(segments: SponsorTime[]): string {
|
|||||||
|
|
||||||
|
|
||||||
export function normalizeChapterName(description: string): string {
|
export function normalizeChapterName(description: string): string {
|
||||||
return description.toLowerCase().replace(/\.|:|-/g, "").replace(/\s+/g, " ");
|
return description.toLowerCase().replace(/[.:-'’`‛‘"‟”]/g, "").replace(/\s+/g, " ");
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user