From 3c9a3de5761e4b1c63ef5bbda6c122b8b7a04910 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sat, 9 Dec 2023 18:53:39 +0100 Subject: [PATCH] removed \r from input --- Day7/Part1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Day7/Part1.js b/Day7/Part1.js index e9c6051..f4717f8 100644 --- a/Day7/Part1.js +++ b/Day7/Part1.js @@ -13,7 +13,7 @@ const cardPattern = [ const cards = ["A", "K", "Q", "J", "T", "9", "8", "7", "6", "5", "4", "3", "2"]; const input = readFileSync("input.txt") .toString() - .split("\r\n") + .split("\n") .filter((e) => e.length > 0); const plays = input .map((p) => {