fix: Date can have multiple dots between numbers.
Somehow DON'T ASK ME WHY
This commit is contained in:
+1
-1
@@ -153,7 +153,7 @@ export default async function parseV3(workbook: Workbook, downloadedFilePath: st
|
|||||||
//
|
//
|
||||||
|
|
||||||
function getUpcomingSheets(workbook: ExcelJS.Workbook): ResolvedDay[] {
|
function getUpcomingSheets(workbook: ExcelJS.Workbook): ResolvedDay[] {
|
||||||
const dateRegex = /^(pondělí|úterý|středa|čtvrtek|pátek|po|út|ut|st|čt|ct|pa|pá)\s+(\d{1,2})\.\s*(\d{1,2})\.\s*(\d{4}|\d{2})/i;
|
const dateRegex = /^(pondělí|úterý|středa|čtvrtek|pátek|po|út|ut|st|čt|ct|pa|pá)\s+(\d{1,2})\.+\s*(\d{1,2})\.\s*(\d{4}|\d{2})/i;
|
||||||
|
|
||||||
const today = new Date();
|
const today = new Date();
|
||||||
const todayMidnight = new Date(today.getFullYear(), today.getMonth(), today.getDate());
|
const todayMidnight = new Date(today.getFullYear(), today.getMonth(), today.getDate());
|
||||||
|
|||||||
Reference in New Issue
Block a user