Hide original chapter if similar in name

This commit is contained in:
Ajay
2022-12-11 12:51:36 -05:00
parent e5794e6685
commit 283ec50388
2 changed files with 25 additions and 3 deletions

View File

@@ -85,3 +85,8 @@ export function exportTimesAsHashParam(segments: SponsorTime[]): string {
return `#segments=${JSON.stringify(hashparamSegments)}`;
}
export function normalizeChapterName(description: string): string {
return description.toLowerCase().replace(/\.|:|-/g, "").replace(/\s+/g, " ");
}