mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
update arg 'time' validation regex to allow 24 hours format
This commit is contained in:
parent
35bac35bb0
commit
9a3d65c313
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue