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
This commit is contained in:
Donald J. Brown
2006-09-13 03:43:44 +00:00
parent 4bf5049492
commit a458e7e50f
@@ -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;
}