Skip to content

Commit 5c4b673

Browse files
tshepangjyn514
authored andcommitted
date-check: be more strict
1 parent 2557089 commit 5c4b673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/date-check/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ fn make_date_regex() -> Regex {
4141
r"(?x) # insignificant whitespace mode
4242
(<!--\s*
4343
date-check:\s*
44-
(?P<m1>\D+)\s+
44+
(?P<m1>[[:alpha:]]+)\s+
4545
(?P<y1>\d{4})\s*-->
4646
)
4747
|
4848
(<!--\s*
4949
date-check\s*-->\s+
50-
(?P<m2>\D+)\s+
50+
(?P<m2>[[:alpha:]]+)\s+
5151
(?P<y2>\d{4})\b
5252
)
5353
",

0 commit comments

Comments
 (0)