This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user