Skip to content

Commit

Permalink
Merge pull request #13 from hildjj/digits
Browse files Browse the repository at this point in the history
Numbers are 1-3 digits
  • Loading branch information
hildjj authored Dec 3, 2024
2 parents f9512f3 + 213ec48 commit e54faad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion day3.peggy
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ command
/ . { return null }

num
= n:$[0-9]+ { return parseInt(n, 10) }
= n:$[0-9]|1..3| { return parseInt(n, 10) }

0 comments on commit e54faad

Please sign in to comment.