Skip to content

Commit 2f52c52

Browse files
ENGCOM-2812: Update time12h javascript validation rule to be compatible with js minify #17652
- Merge Pull Request #17652 from markoshust/magento2:feature/17648 - Merged commits: 1. 99a616d 2. 317545a
2 parents ecebc42 + 317545a commit 2f52c52

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)