From 90c17bfafb20a2191e7e51c21394b9419911dc06 Mon Sep 17 00:00:00 2001 From: mtrx Date: Fri, 6 Dec 2024 03:08:07 +0100 Subject: [PATCH] more old comments removed --- solutions/03.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/solutions/03.ts b/solutions/03.ts index 0a256d8..22a9845 100644 --- a/solutions/03.ts +++ b/solutions/03.ts @@ -16,7 +16,6 @@ class DayThree implements Solvable { public part1(): Solvable { const re = /mul\([0-9]{1,3},[0-9]{1,3}\)/g - // get all matches and parse them to int[] const result = this.input.matchAll(new RegExp(re)) .map(match => this.multiplyInstruction(match[0])) .map(([left, right]) => left * right) @@ -27,7 +26,6 @@ class DayThree implements Solvable { public part2(): Solvable { const re = /(mul\([0-9]{1,3},[0-9]{1,3}\)|do\(\)|don\'t\(\))/g - // get all matches and parse them to int[] const instructions = this.input.replace('\n', '').trim().matchAll(new RegExp(re)).map(match => match[0]) let active = true let result = 0