aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Media/Anime/Airing
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-05-26 14:14:53 +0000
committerFuwn <[email protected]>2026-05-26 14:14:53 +0000
commit9e1804f38c4987c9caca478a8f0f9b015c850cd4 (patch)
treec8aafc2cbb13aae0ab7312eb80c17b921db1d75f /src/lib/Media/Anime/Airing
parentfix(lists): pass pre-mutation progress to anime increment mutation (diff)
downloaddue.moe-9e1804f38c4987c9caca478a8f0f9b015c850cd4.tar.xz
due.moe-9e1804f38c4987c9caca478a8f0f9b015c850cd4.zip
fix(match): normalize "S2"-style season suffix in title preprocessing
Diffstat (limited to 'src/lib/Media/Anime/Airing')
-rw-r--r--src/lib/Media/Anime/Airing/Subtitled/match.ts1
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()