Author: mrdon
Date: Tue Sep 12 20:43:44 2006
New Revision: 442823

URL: http://svn.apache.org/viewvc?view=rev&rev=442823
Log:
Fix wrong regex validation for form close template
WW-1419

Modified:
    
struts/struts2/trunk/core/src/main/resources/template/xhtml/form-close-validate.ftl

Modified: 
struts/struts2/trunk/core/src/main/resources/template/xhtml/form-close-validate.ftl
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/xhtml/form-close-validate.ftl?view=diff&rev=442823&r1=442822&r2=442823
==============================================================================
--- 
struts/struts2/trunk/core/src/main/resources/template/xhtml/form-close-validate.ftl
 (original)
+++ 
struts/struts2/trunk/core/src/main/resources/template/xhtml/form-close-validate.ftl
 Tue Sep 12 20:43:44 2006
@@ -53,7 +53,7 @@
                 }
             }
             <#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;
             }


Reply via email to