From b3f2721de184e5c9d137048251b76cac3562248e Mon Sep 17 00:00:00 2001 From: FallBackITA27 Date: Thu, 11 Apr 2024 17:39:31 +0200 Subject: [PATCH] debug --- mkwpp-parser/script.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mkwpp-parser/script.js b/mkwpp-parser/script.js index a2c34fe..a44d63e 100644 --- a/mkwpp-parser/script.js +++ b/mkwpp-parser/script.js @@ -84,7 +84,6 @@ document.getElementById("readInput").addEventListener("click", async function() currentSubmission.err = true; currentSubmission.errString = "Cannot parse date"; }; - console.log(keywords); for (let keyword of keywords.slice(1, keywords.length)) { let kw = keyword.replace(/,/g, ""); if (kw.length === 4) { @@ -98,8 +97,11 @@ document.getElementById("readInput").addEventListener("click", async function() break; } if (_break) continue; + console.log(kw); let kwfiltered = kw.replace(/th/g, "").replace(/rd/g, "").replace(/nd/g, "").replace(/st/g, ""); - date = kwfiltered.padStart(2,"0") + console.log(kwfiltered); + console.log(kwfiltered.padStart(2,"0")); + date = kwfiltered.padStart(2,"0"); }; currentSubmission = { name: "",