mirror of
https://github.com/django/django.git
synced 2025-10-25 22:56:12 +00:00
Fixed #32904 -- Made parse_time() more strict.
Thanks Keryn Knight for the report.
This commit is contained in:
committed by
Mariusz Felisiak
parent
68cc04887b
commit
cf6774a53b
@@ -16,7 +16,7 @@ date_re = _lazy_re_compile(
|
||||
|
||||
time_re = _lazy_re_compile(
|
||||
r'(?P<hour>\d{1,2}):(?P<minute>\d{1,2})'
|
||||
r'(?::(?P<second>\d{1,2})(?:[\.,](?P<microsecond>\d{1,6})\d{0,6})?)?'
|
||||
r'(?::(?P<second>\d{1,2})(?:[\.,](?P<microsecond>\d{1,6})\d{0,6})?)?$'
|
||||
)
|
||||
|
||||
datetime_re = _lazy_re_compile(
|
||||
|
||||
Reference in New Issue
Block a user