We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1bcce7 + 0a5ef75 commit 4701454Copy full SHA for 4701454
lib/web/mage/validation.js
@@ -364,7 +364,7 @@
364
],
365
'time12h': [
366
function (value, element) {
367
- return this.optional(element) || /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))$/i.test(value);
+ return this.optional(element) || /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\s[AP]M))$/i.test(value);
368
},
369
$.mage.__('Please enter a valid time, between 00:00 am and 12:00 pm')
370
0 commit comments