about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTshepang Mbambo <tshepang@gmail.com>2022-08-02 23:12:30 +0200
committerJoshua Nelson <github@jyn.dev>2022-08-02 17:22:34 -0400
commit3c7ae5a98175ebf25e2ec882dd8484bbe8948e9a (patch)
tree5b5f13193b9e51182bef97b4c0c9bc60ada3b9e5 /src
parent481233d42edbd6c95a2ee5d184612f9ebc8b7012 (diff)
date-check: be more strict
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustc-dev-guide/ci/date-check/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/ci/date-check/src/main.rs b/src/doc/rustc-dev-guide/ci/date-check/src/main.rs
index 626278ddb94..8a33d405b46 100644
--- a/src/doc/rustc-dev-guide/ci/date-check/src/main.rs
+++ b/src/doc/rustc-dev-guide/ci/date-check/src/main.rs
@@ -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
         )
     ",