aboutsummaryrefslogtreecommitdiff
path: root/aoc-2020-gleam/src/days/day02.gleam
diff options
context:
space:
mode:
authorTomasz Chojnacki <tomaszchojnacki2001@gmail.com>2023-02-20 14:45:00 +0100
committerTomasz Chojnacki <tomaszchojnacki2001@gmail.com>2023-02-20 14:45:00 +0100
commit282e89c70e7e0e48a198d4d243d1d4d0561b8654 (patch)
tree255e375aeaf7fe7aee15b1167ce8329db3d462dc /aoc-2020-gleam/src/days/day02.gleam
parentc4372e5b3d64d1b08cf9b00d0845141bbee753f6 (diff)
downloadgleam_aoc2020-282e89c70e7e0e48a198d4d243d1d4d0561b8654.tar.gz
gleam_aoc2020-282e89c70e7e0e48a198d4d243d1d4d0561b8654.zip
Finish day 4
Diffstat (limited to 'aoc-2020-gleam/src/days/day02.gleam')
-rw-r--r--aoc-2020-gleam/src/days/day02.gleam2
1 files changed, 1 insertions, 1 deletions
diff --git a/aoc-2020-gleam/src/days/day02.gleam b/aoc-2020-gleam/src/days/day02.gleam
index bc5f7bd..bc8df7c 100644
--- a/aoc-2020-gleam/src/days/day02.gleam
+++ b/aoc-2020-gleam/src/days/day02.gleam
@@ -26,7 +26,7 @@ fn parse_line(string: String) -> Line {
|> p.map3(with: fn(min, max, grapheme) { Policy(min, max, grapheme) })
|> p.labeled(with: "policy")
- let password_parser = p.labeled(p.any_string(), with: "password")
+ let password_parser = p.labeled(p.any_string_greedy(), with: "password")
let line_parser =
policy_parser