Skip to content

Commit

Permalink
Fix syntax warning in day3 regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoltePudeleczko committed Dec 6, 2024
1 parent e7ff19b commit f01f22b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 2024/src/day3.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
DAY_NUMBER = 3
USE_EXAMPLE = False

DO_REGEX = "do\(\)"
DO_NOT_REGEX = "don't\(\)"
MUL_REGEX = "mul\([0-9]{1,3},[0-9]{1,3}\)"
DO_REGEX = r"do\(\)"
DO_NOT_REGEX = r"don\'t\(\)"
MUL_REGEX = r"mul\([0-9]{1,3},[0-9]{1,3}\)"

with get_data(DAY_NUMBER, USE_EXAMPLE) as f:
memory = "".join(f.readlines())
Expand Down

0 comments on commit f01f22b

Please sign in to comment.