Fiddling with the capture groups
This commit is contained in:
parent
31da44e847
commit
9edce9160e
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue