Skip to content

Commit 02026d9

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #17652: Update time12h javascript validation rule to be compatible with js minify (by @markoshust) Fixed GitHub Issues: - #17648: UI validation rule for valid time am/pm doesn't work when js is minified (reported by @markoshust) has been fixed in #17652 by @markoshust in 2.2-develop branch Related commits: 1. 99a616d 2. 317545a
2 parents 900ecea + d3da81e commit 02026d9

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)