From d942d6775a3cde1da54e68ed3cf9757ee4d105d4 Mon Sep 17 00:00:00 2001 From: Dmytro Cheshun Date: Sun, 19 Aug 2018 10:19:41 +0300 Subject: [PATCH] Make "time12h" validation rule to be compatible with minify js --- app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js b/app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js index 00de03ba69647..23cf080346d5a 100644 --- a/app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js +++ b/app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js @@ -194,7 +194,7 @@ define([ ], "time12h": [ function(value) { - return /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))$/i.test(value); + return /^((0?[1-9]|1[012])(:[0-5]\d){0,2}(\s[AP]M))$/i.test(value); }, $.mage.__('Please enter a valid time, between 00:00 am and 12:00 pm') ],