Skip to content

Commit afd903b

Browse files
ENGCOM-2824: [Forwardport] Update time12h javascript validation rule to be compatible with js minify #17688
- Merge Pull Request #17688 from dmytro-ch/magento2:2.3-develop-PR-port-17652 - Merged commits: 1. fe08890
2 parents 7fac89a + fe08890 commit afd903b

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
@@ -221,7 +221,7 @@ define([
221221
],
222222
'time12h': [
223223
function (value) {
224-
return /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))$/i.test(value);
224+
return /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\s[AP]M))$/i.test(value);
225225
},
226226
$.mage.__('Please enter a valid time, between 00:00 am and 12:00 pm')
227227
],

0 commit comments

Comments
 (0)