From 6e5c8f0e1d1b2cd157cdc4cd4751ae7c29cffd31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Rodr=C3=ADguez?= Date: Wed, 27 Sep 2017 10:48:50 +0200 Subject: [PATCH] ISSUE#9920 MAGETWO-75838 Fix in stripped min lenght validation when value has special characters --- 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 c7fb51f813ba0..e673431cd43ab 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 @@ -244,7 +244,7 @@ define([ ], 'stripped-min-length': [ function (value, param) { - return $(value).text().length >= param; + return value.length >= param; }, $.mage.__('Please enter at least {0} characters') ],