date-check: be more strict

This commit is contained in:
Tshepang Mbambo 2022-08-02 23:12:30 +02:00 committed by Joshua Nelson
parent 8194045511
commit 7910832e02
1 changed files with 2 additions and 2 deletions

View File

@ -41,13 +41,13 @@ fn make_date_regex() -> Regex {
r"(?x) # insignificant whitespace mode
(<!--\s*
date-check:\s*
(?P<m1>\D+)\s+
(?P<m1>[[:alpha:]]+)\s+
(?P<y1>\d{4})\s*-->
)
|
(<!--\s*
date-check\s*-->\s+
(?P<m2>\D+)\s+
(?P<m2>[[:alpha:]]+)\s+
(?P<y2>\d{4})\b
)
",