diff options
| author | Fuwn <[email protected]> | 2026-05-26 14:14:53 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-05-26 14:14:53 +0000 |
| commit | 9e1804f38c4987c9caca478a8f0f9b015c850cd4 (patch) | |
| tree | c8aafc2cbb13aae0ab7312eb80c17b921db1d75f /src | |
| parent | fix(lists): pass pre-mutation progress to anime increment mutation (diff) | |
| download | due.moe-9e1804f38c4987c9caca478a8f0f9b015c850cd4.tar.xz due.moe-9e1804f38c4987c9caca478a8f0f9b015c850cd4.zip | |
fix(match): normalize "S2"-style season suffix in title preprocessing
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/Media/Anime/Airing/Subtitled/match.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Media/Anime/Airing/Subtitled/match.ts b/src/lib/Media/Anime/Airing/Subtitled/match.ts index 40dda4b8..10f63aa5 100644 --- a/src/lib/Media/Anime/Airing/Subtitled/match.ts +++ b/src/lib/Media/Anime/Airing/Subtitled/match.ts @@ -60,6 +60,7 @@ const secondsUntil = (targetTime: string, targetDay: string) => { const preprocessTitle = (title: string): string => { return title .toLowerCase() + .replace(/\b(season|s|part|cour)(\d+)\b/g, " $2 ") .replace(/\b(season|s|part|cour)\b/g, " ") .replace(/[^a-z0-9\s]/gi, "") .trim() |