Skip to content

Commit

Permalink
skip line if it has discord dash fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Jun 25, 2024
1 parent 4e057e9 commit e6689fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mkwpp-parser/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ document.getElementById("readInput").addEventListener("click", async function()
for (let line of parserData) {
let lowercaseLine = line.toLowerCase();
console.log(lowercaseLine);
if (lowercaseLine.includes("—")) {
writeToOutput(`Skipped line "${line}", it's a discord line.`);
continue;
}
if (lowercaseLine.startsWith("date")) {
skipToNextSubmission = false
flapCatch = false;
Expand Down

0 comments on commit e6689fb

Please sign in to comment.