diff --git a/ci/date-check/src/main.rs b/ci/date-check/src/main.rs index 95c38038a..710aadf61 100644 --- a/ci/date-check/src/main.rs +++ b/ci/date-check/src/main.rs @@ -38,10 +38,18 @@ impl fmt::Display for Date { fn make_date_regex() -> Regex { Regex::new( - r"(?x) - (?:) + r"(?x) # insignificant whitespace mode + ( + ) | - (?:\s+(\D+)\s+(\d{4})\b) + (\s+ + (?P\D+)\s+ + (?P\d{4})\b + ) ", ) .unwrap()