diff --git a/template/part_2.ts b/template/part_2.ts index 6cd6924..3813605 100644 --- a/template/part_2.ts +++ b/template/part_2.ts @@ -8,7 +8,7 @@ const isrun = process.argv.length > 1 && process.argv[1] === import.meta.path; if (isrun) { const file = Bun.file("./problem.txt"); const text = await file.text(); - const lines = text.split("\n"); + const lines = text.split("\n").filter((x) => x && x.length); console.log("=== COMPUTATION ===\n");