mirror of
https://github.com/Baipyrus/AoC-23.git
synced 2024-11-14 09:43:49 +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 cards = ["A", "K", "Q", "J", "T", "9", "8", "7", "6", "5", "4", "3", "2"];
|
||||||
const input = readFileSync("input.txt")
|
const input = readFileSync("input.txt")
|
||||||
.toString()
|
.toString()
|
||||||
.split("\r\n")
|
.split("\n")
|
||||||
.filter((e) => e.length > 0);
|
.filter((e) => e.length > 0);
|
||||||
const plays = input
|
const plays = input
|
||||||
.map((p) => {
|
.map((p) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user