Skip to content

Commit 4701454

Browse files
author
Stanislav Idolov
authored
ENGCOM-3018: Update time12h javascript validation rule to be compatible with js minify #18141
2 parents c1bcce7 + 0a5ef75 commit 4701454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@
364364
],
365365
'time12h': [
366366
function (value, element) {
367-
return this.optional(element) || /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))$/i.test(value);
367+
return this.optional(element) || /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\s[AP]M))$/i.test(value);
368368
},
369369
$.mage.__('Please enter a valid time, between 00:00 am and 12:00 pm')
370370
],

0 commit comments

Comments
 (0)