From 456008cc35de0597d26fec0030ee5db8a0c2fb65 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Tue, 2 Aug 2022 05:38:20 +0200 Subject: [PATCH] accept review suggestion Co-authored-by: Noah Lev --- ci/date-check/src/main.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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()