From b24b10d0dc6f5c58a85ab1b62334a14301e5e3bf Mon Sep 17 00:00:00 2001 From: "J.J" Date: Fri, 1 Dec 2023 14:30:17 -0500 Subject: fixing a smal --- aoc2023/src/day1/solve.gleam | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'aoc2023') 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) { -- cgit v1.2.3