removed unnecessary code
This commit is contained in:
parent
90c17bfafb
commit
75d541877d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue