From a458e7e50f71fce3247c66205fa0c689e946c633 Mon Sep 17 00:00:00 2001 From: "Donald J. Brown" Date: Wed, 13 Sep 2006 03:43:44 +0000 Subject: [PATCH] Fix wrong regex validation for form close template WW-1419 git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@442823 13f79535-47bb-0310-9956-ffa450edef68 --- core/src/main/resources/template/xhtml/form-close-validate.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }