Skip to content

Commit bb8994f

Browse files
ENGCOM-2825: [Backport] Update time12h javascript validation rule to be compatible with js minify #17689
- Merge Pull Request #17689 from dmytro-ch/magento2:2.1-develop-PR-port-17652 - Merged commits: 1. d942d67
2 parents 8858fea + d942d67 commit bb8994f

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
@@ -194,7 +194,7 @@ define([
194194
],
195195
"time12h": [
196196
function(value) {
197-
return /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))$/i.test(value);
197+
return /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\s[AP]M))$/i.test(value);
198198
},
199199
$.mage.__('Please enter a valid time, between 00:00 am and 12:00 pm')
200200
],

0 commit comments

Comments
 (0)