diff options
| author | Fuwn <[email protected]> | 2026-01-29 19:19:50 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-29 19:19:50 -0800 |
| commit | 7e3c7c14d3e7940bc310784e852082504b2760ce (patch) | |
| tree | 3c7d0db5afbd53f50c9299d4da9c01485afb0968 /src/lib/Data | |
| parent | feat(LandingHero): Make "See More" scroll past hero (diff) | |
| download | due.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.ts | 5 |
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'); |