Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Apr 11, 2024
1 parent 7165711 commit b3f2721
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mkwpp-parser/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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: "",
Expand Down

0 comments on commit b3f2721

Please sign in to comment.