Fiddling with the capture groups

This commit is contained in:
digimint 2025-11-21 17:25:52 -06:00
parent 31da44e847
commit 9edce9160e
Signed by: digimint
GPG key ID: 8DF1C6FD85ABF748

View file

@ -127,11 +127,11 @@ MONTHS=[
MONTHS_RE = '|'.join(MONTHS)
TIME_RE = (
'(?P<time_normal>(?P<hours>[0-9]{1,2})'
'(?:(?P<time_normal>(?P<hours>[0-9]{1,2})'
+ '(?::(?P<minutes>[0-9]{2}))?'
+ '(?::(?P<seconds>[0-9]{2}))?'
+ ' ?(?P<ampm>AM|PM)?)'
+ '|(?P<time_special>NOON|MIDNIGHT)'
+ '|(?P<time_special>NOON|MIDNIGHT))'
)
STRICT_TIME_RE = (