Skip to content

Commit

Permalink
MAGETWO-82426: Fix "pattern" UI Component validation magento#11565
Browse files Browse the repository at this point in the history
  • Loading branch information
vrann authored Oct 20, 2017
2 parents b72b251 + 3c7b53a commit fc9c0e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ define([
],
'pattern': [
function (value, param) {
return param.test(value);
return new RegExp(param).test(value);
},
$.mage.__('Invalid format.')
],
Expand Down

0 comments on commit fc9c0e4

Please sign in to comment.