Skip to content

Commit

Permalink
#6113: Validate range-words in Form component (UI Component)
Browse files Browse the repository at this point in the history
- Fixed regexp pattern for range-words validation
  • Loading branch information
AndrewMun committed Dec 15, 2017
1 parent 3839c0f commit 465e14b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ define([
'range-words': [
function (value, params) {
return utils.stripHtml(value).match(/\b\w+\b/g).length >= params[0] &&
value.match(/bw+b/g).length < params[1];
utils.stripHtml(value).match(/\b\w+\b/g).length < params[1];
},
$.mage.__('Please enter between {0} and {1} words.')
],
Expand Down

0 comments on commit 465e14b

Please sign in to comment.