Skip to content

Commit

Permalink
Update rules.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mageprince committed Jul 27, 2018
1 parent 64bad6b commit 50f4051
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,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 50f4051

Please sign in to comment.