diff --git a/core/src/main/resources/template/xhtml/form-close-validate.ftl b/core/src/main/resources/template/xhtml/form-close-validate.ftl index 203373b10..2c8da8dc1 100644 --- a/core/src/main/resources/template/xhtml/form-close-validate.ftl +++ b/core/src/main/resources/template/xhtml/form-close-validate.ftl @@ -53,7 +53,7 @@ END SNIPPET: supported-validators } } <#elseif validator.validatorType = "regex"> - if (field.value != null && !field.value.match("${validator.expression?js_string}")==null) { + if (field.value != null && !field.value.match("${validator.expression?js_string}")) { addError(field, error); errors = true; }