Skip to content

Commit

Permalink
Support more than two digits of each unit
Browse files Browse the repository at this point in the history
Now it's possible to do `countdown 100m` or `countdown 120s`.
  • Loading branch information
sampsyo committed May 13, 2024
1 parent bd308d8 commit 2ac8fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/countdown/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
r"""
^
(?: # Optional minutes
( \d{1,2} ) # D or DD
( \d+ ) # one or more digits
m # "m"
)?
(?: # Optional seconds
( \d{1,2} ) # D or DD
( \d+ ) # one or more digits
s # "s"
)?
$
Expand Down

0 comments on commit 2ac8fa3

Please sign in to comment.