From f2c235f8c775342d3d66e256bb7c5efa622d10ed Mon Sep 17 00:00:00 2001 From: Julius de Jeu Date: Tue, 28 Jun 2022 16:37:10 +0200 Subject: [PATCH] Fix CRLF problems It replaces a \r\n with \n now, and a \r with \n to also support macOS line endings --- templates/party.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/party.html b/templates/party.html index bb70a55..d96a8e4 100644 --- a/templates/party.html +++ b/templates/party.html @@ -236,6 +236,7 @@ let num = 0; reader.onload = (evt) => { let result = evt.target.result; + result = result.replace("\r\n", "\n").replace("\r", "\n"); for (let line of result.split("\n")) { for (let llnr of line.split(",")) { if (llnr.length === 6 && !isNaN(llnr)) {