Skip to content

Commit 438d444

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #17689: [Backport] Update time12h javascript validation rule to be compatible with js minify (by @dmytro-ch) 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 #17689 by @dmytro-ch in 2.1-develop branch Related commits: 1. d942d67
2 parents 98aa825 + ced3763 commit 438d444

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)