Skip to content

Commit

Permalink
forgot this was a thing
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Jun 20, 2024
1 parent e18d4e4 commit 3a591d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkwpp-parser/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ document.getElementById("readInput").addEventListener("click", async function()
skipToNextSubmission = true;
writeToOutput(`submission starting at "${line}", cannot parse date`);
};
for (let keyword of keywords.slice(1, keywords.length)) {
outerLoop: for (let keyword of keywords.slice(1, keywords.length)) {
let kw = keyword.replace(/,/g, "").replace(/th/g, "").replace(/rd/g, "").replace(/nd/g, "").replace(/st/g, "");
for (let abbr of Object.keys(constants.months)) if (kw.startsWith(abbr)) {
console.log(kw);
month = constants.months[abbr];
break;
continue outerLoop;
}
if (kw.length === 4 && !isNaN(parseInt(kw))) {
year = kw;
Expand Down

0 comments on commit 3a591d7

Please sign in to comment.