Commit d92af436 authored by Ad Schellevis's avatar Ad Schellevis

(cron) fix validation thanks @alisamar, closes https://github.com/opnsense/core/issues/769

parent 186417c8
......@@ -24,7 +24,7 @@
<hours type="TextField">
<default>0</default>
<Required>Y</Required>
<mask>/^((?:\*|[1-2][0-3]|0[0-9]|[0-9])(,{1}|-{1}|$))+$/</mask>
<mask>/^((?:\*|([1][0-9]|[2][0-3])|0[0-9]|[0-9])(,{1}|-{1}|$))+$/</mask>
<ValidationMessage>Value needs to be between 0 and 23, multiple values, ranges and * are supported (ex. 1,2,8 or 0-8 )</ValidationMessage>
</hours>
<days type="TextField">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment