From 9a3d65c3132d03f9e558b3ea722d88aefb3a2dd2 Mon Sep 17 00:00:00 2001 From: axolotle Date: Sat, 1 Oct 2022 20:19:51 +0200 Subject: [PATCH] update arg 'time' validation regex to allow 24 hours format --- src/utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/config.py b/src/utils/config.py index c03d6cfa8..0ab5fc2ba 100644 --- a/src/utils/config.py +++ b/src/utils/config.py @@ -1029,7 +1029,7 @@ class DateQuestion(StringQuestion): class TimeQuestion(StringQuestion): pattern = { - "regexp": r"^(1[12]|0?\d):[0-5]\d$", + "regexp": r"^(?:\d|[01]\d|2[0-3]):[0-5]\d$", "error": "config_validate_time", # i18n: config_validate_time }