diff options
author | J.J <thechairman@thechairman.info> | 2023-12-01 14:30:17 -0500 |
---|---|---|
committer | J.J <thechairman@thechairman.info> | 2023-12-01 14:30:17 -0500 |
commit | b24b10d0dc6f5c58a85ab1b62334a14301e5e3bf (patch) | |
tree | ee20893cee3da365f0ebf1a94f091909b855951d /aoc2023 | |
parent | a8589ba63ceb079ac6a24a7835098ec633296f02 (diff) | |
download | gleam_aoc-b24b10d0dc6f5c58a85ab1b62334a14301e5e3bf.tar.gz gleam_aoc-b24b10d0dc6f5c58a85ab1b62334a14301e5e3bf.zip |
fixing a smal
Diffstat (limited to 'aoc2023')
-rw-r--r-- | aoc2023/src/day1/solve.gleam | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/aoc2023/src/day1/solve.gleam b/aoc2023/src/day1/solve.gleam index fbc160f..b9a6588 100644 --- a/aoc2023/src/day1/solve.gleam +++ b/aoc2023/src/day1/solve.gleam @@ -7,7 +7,7 @@ import gleam/result import gleam/int fn parse_digits(input: String) { - let assert Ok(re) = regex.from_string("[0-9]") + let assert Ok(re) = regex.from_string("[1-9]") input |> string.split("\n") @@ -39,7 +39,6 @@ const substitutions = [ #("seven", "7n"), #("eight", "e8t"), #("nine", "n9e"), - #("zero", "0o"), ] pub fn part2(input: String) { |