Skip to content

Commit fe08890

Browse files
committed
Make "time12h" validation rule to be compatible with minify js
1 parent 7fac89a commit fe08890

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
@@ -221,7 +221,7 @@ define([
221221
],
222222
'time12h': [
223223
function (value) {
224-
return /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))$/i.test(value);
224+
return /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\s[AP]M))$/i.test(value);
225225
},
226226
$.mage.__('Please enter a valid time, between 00:00 am and 12:00 pm')
227227
],

0 commit comments

Comments
 (0)