From 9edce9160e2e94c854547bd254f10e9c96ece258 Mon Sep 17 00:00:00 2001 From: digimint Date: Fri, 21 Nov 2025 17:25:52 -0600 Subject: [PATCH] Fiddling with the capture groups --- src/taskflower/util/time.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/taskflower/util/time.py b/src/taskflower/util/time.py index f00d796..456e5e3 100644 --- a/src/taskflower/util/time.py +++ b/src/taskflower/util/time.py @@ -127,11 +127,11 @@ MONTHS=[ MONTHS_RE = '|'.join(MONTHS) TIME_RE = ( - '(?P(?P[0-9]{1,2})' + '(?:(?P(?P[0-9]{1,2})' + '(?::(?P[0-9]{2}))?' + '(?::(?P[0-9]{2}))?' + ' ?(?PAM|PM)?)' - + '|(?PNOON|MIDNIGHT)' + + '|(?PNOON|MIDNIGHT))' ) STRICT_TIME_RE = (