From d64db855b74b4fd4736275db27c8db89b45abd3a Mon Sep 17 00:00:00 2001 From: FallBackITA27 Date: Thu, 11 Apr 2024 14:10:16 +0200 Subject: [PATCH] filter out useless lines --- mkwpp-parser/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkwpp-parser/script.js b/mkwpp-parser/script.js index 018210a..d103527 100644 --- a/mkwpp-parser/script.js +++ b/mkwpp-parser/script.js @@ -20,7 +20,7 @@ document.addEventListener("DOMContentLoaded", async function() { }); document.getElementById("readInput").addEventListener("click", async function() { - let parserData = document.getElementById("inputTextArea").value.split("\n"); + let parserData = document.getElementById("inputTextArea").value.split("\n").filter(r=>r === ""); console.log(parserData); });