commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1195321 - /commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/EmailValidator.java
Date Mon, 31 Oct 2011 03:46:08 GMT
Author: dbrosius
Date: Mon Oct 31 03:46:07 2011
New Revision: 1195321

URL: http://svn.apache.org/viewvc?rev=1195321&view=rev
Log:
fix email address embedded comment striping

Modified:
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/EmailValidator.java

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/EmailValidator.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/EmailValidator.java?rev=1195321&r1=1195320&r2=1195321&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/EmailValidator.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/EmailValidator.java
Mon Oct 31 03:46:07 2011
@@ -218,7 +218,7 @@ public class EmailValidator {
      Pattern commentMatcher = Pattern.compile(commentPat);
      
      while (commentMatcher.matcher(result).matches()) {
-        result.replaceFirst(commentPat, "\1 ");
+        result = result.replaceFirst(commentPat, "\1 ");
      }
      return result;
     }



Mime
View raw message