aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Data
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-01-29 19:19:50 -0800
committerFuwn <[email protected]>2026-01-29 19:19:50 -0800
commit7e3c7c14d3e7940bc310784e852082504b2760ce (patch)
tree3c7d0db5afbd53f50c9299d4da9c01485afb0968 /src/lib/Data
parentfeat(LandingHero): Make "See More" scroll past hero (diff)
downloaddue.moe-7e3c7c14d3e7940bc310784e852082504b2760ce.tar.xz
due.moe-7e3c7c14d3e7940bc310784e852082504b2760ce.zip
fix: Resolve all ESLint errors and warnings
Diffstat (limited to 'src/lib/Data')
-rw-r--r--src/lib/Data/hololive.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Data/hololive.ts b/src/lib/Data/hololive.ts
index 1617d6d8..7bcb153a 100644
--- a/src/lib/Data/hololive.ts
+++ b/src/lib/Data/hololive.ts
@@ -62,7 +62,12 @@ function parseToLiveBlocks(html: string): LiveBlock[] {
const dateDiv = row.querySelector('.holodule');
if (dateDiv) {
date = dateDiv.textContent?.replace(/\s+/g, '') || '';
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
date = date.match(/\d+\/\d+/)![0].replace('/', '-');
+
+ // const dateMatch = date.match(/\d+\/\d+/);
+ //
+ // date = dateMatch ? dateMatch[0].replace('/', '-') : '';
}
const allThumbnail = row.querySelectorAll('a.thumbnail');