1
0

fix: Parser
All checks were successful
Remote Deploy / deploy (push) Successful in 6s

This commit is contained in:
2026-02-08 19:19:21 +01:00
parent 53ecce1eca
commit d2a702f9f3
2 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ export default async function parseV1V2(downloadedFilePath) {
const datedSheets = [];
for (const sheet of workbook.worksheets) {
const match = sheet.name.match(dateRegex);
const match = sheet.name.toLowerCase().match(dateRegex);
if (!match) continue;
const day = parseInt(match[2], 10);
@@ -60,8 +60,8 @@ export default async function parseV1V2(downloadedFilePath) {
}
const upcomingSheets = Object.values(sheetsByDate).map((sheets) => {
if (sheets.length === 1) return sheets[0].name;
return (sheets.find((s) => s.state !== "hidden") ?? sheets[0]).name;
if (sheets.length === 1) return sheets[0].name.toLowerCase();
return (sheets.find((s) => s.state !== "hidden") ?? sheets[0]).name.toLowerCase();
});
const final = [];