removed unnecessary code

This commit is contained in:
mtrx 2024-12-06 03:08:30 +01:00
parent 90c17bfafb
commit 75d541877d

View file

@ -26,7 +26,7 @@ class DayThree implements Solvable {
public part2(): Solvable {
const re = /(mul\([0-9]{1,3},[0-9]{1,3}\)|do\(\)|don\'t\(\))/g
const instructions = this.input.replace('\n', '').trim().matchAll(new RegExp(re)).map(match => match[0])
const instructions = this.input.matchAll(new RegExp(re)).map(match => match[0])
let active = true
let result = 0
for (const inst of instructions) {