Skip to content

Commit fc9c0e4

Browse files
authored
MAGETWO-82426: Fix "pattern" UI Component validation #11565
2 parents b72b251 + 3c7b53a commit fc9c0e4

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
@@ -360,7 +360,7 @@ define([
360360
],
361361
'pattern': [
362362
function (value, param) {
363-
return param.test(value);
363+
return new RegExp(param).test(value);
364364
},
365365
$.mage.__('Invalid format.')
366366
],

0 commit comments

Comments
 (0)