From 3a591d7f3758cd1f4a58a2c363cc4b44eed49348 Mon Sep 17 00:00:00 2001 From: FallBackITA27 Date: Thu, 20 Jun 2024 14:23:50 +0200 Subject: [PATCH] forgot this was a thing --- mkwpp-parser/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkwpp-parser/script.js b/mkwpp-parser/script.js index 654b0d9..70f90a2 100644 --- a/mkwpp-parser/script.js +++ b/mkwpp-parser/script.js @@ -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;