Skip to content

Commit

Permalink
MAGETWO-80150: Fix in stripped min length validation when value has s…
Browse files Browse the repository at this point in the history
…pecial characters #11084
  • Loading branch information
vrann authored Oct 6, 2017
2 parents 15e4dc5 + 3efba6e commit 3f97e5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ define([
],
'stripped-min-length': [
function (value, param) {
return value.length >= param;
return _.isUndefined(value) || value.length === 0 || utils.stripHtml(value).length >= param;
},
$.mage.__('Please enter at least {0} characters')
],
Expand Down

0 comments on commit 3f97e5d

Please sign in to comment.