diff --git a/js/lib/monster.ui.js b/js/lib/monster.ui.js index 0a6686b51..b0e78ee57 100644 --- a/js/lib/monster.ui.js +++ b/js/lib/monster.ui.js @@ -757,6 +757,11 @@ define(function(require){ else return true; }, localization.customRules['checkList']); + // Adding advanced custom rules + $.validator.addMethod('regex', function(value, element, regexpr) { + return regexpr.test(value); + }); + this.customValidationInitialized = true; },