Skip to content

Commit 50f4051

Browse files
committed
Update rules.js
1 parent 64bad6b commit 50f4051

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
@@ -316,7 +316,7 @@ define([
316316
],
317317
"pattern": [
318318
function(value, param) {
319-
return param.test(value);
319+
return new RegExp(param).test(value);
320320
},
321321
$.mage.__('Invalid format.')
322322
],

0 commit comments

Comments
 (0)