Skip to content

Commit

Permalink
random space keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Jun 25, 2024
1 parent df0e284 commit 46a3d03
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,7 +176,7 @@ document.getElementById("readInput").addEventListener("click", async function()
let year;
let month;
let date;
let keywords = lowercaseLine.split(" ").filter(r=>r !== " ");
let keywords = lowercaseLine.split(" ").filter(r=>r !== "");
if (keywords.length > 4) {
skipToNextSubmission = true;
writeToOutput(`submission starting at "${line}", cannot parse date`);
Expand All @@ -199,7 +199,7 @@ document.getElementById("readInput").addEventListener("click", async function()
}
if (skipToNextSubmission) continue;
if (lowercaseLine.startsWith("name")) {
let keywords = lowercaseLine.split(" ").filter(r=>r !== " ");
let keywords = lowercaseLine.split(" ").filter(r=>r !== "");
currentName = keywords.slice(1,keywords.length).join(" ");
if (data.players[currentName] != null && data.players[currentName] != undefined) continue;
skipToNextSubmission = true;
Expand Down

0 comments on commit 46a3d03

Please sign in to comment.