mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user