Skip to content

Commit 317545a

Browse files
authored
Make "time12h" validation rule to be compatible with minify js
Fixes #17648
1 parent 99a616d commit 317545a

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Ui/view/base/web/js/lib/validation

1 file changed

+1
-1
lines changed

app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ define([
224224
],
225225
'time12h': [
226226
function (value) {
227-
return utils.isEmpty(value) || /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))$/i.test(value);
227+
return utils.isEmpty(value) || /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\s[AP]M))$/i.test(value);
228228
},
229229
$.mage.__('Please enter a valid time, between 00:00 am and 12:00 pm')
230230
],

0 commit comments

Comments
 (0)