mirror of
https://github.com/Baipyrus/AoC-23.git
synced 2024-11-12 17:13:48 +00:00
removed \r from input
This commit is contained in:
parent
56a05578a7
commit
3c9a3de576
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user