Skip to content

Commit 6e5c8f0

Browse files
author
Rubén Rodríguez
committed
ISSUE#9920 MAGETWO-75838 Fix in stripped min lenght validation when value has special characters
1 parent 304c734 commit 6e5c8f0

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
@@ -244,7 +244,7 @@ define([
244244
],
245245
'stripped-min-length': [
246246
function (value, param) {
247-
return $(value).text().length >= param;
247+
return value.length >= param;
248248
},
249249
$.mage.__('Please enter at least {0} characters')
250250
],

0 commit comments

Comments
 (0)