You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by bf...@apache.org on 2014/05/03 19:54:03 UTC

svn commit: r1592257 - /oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/GenericEmailParser.java

Author: bfoster
Date: Sat May  3 17:54:03 2014
New Revision: 1592257

URL: http://svn.apache.org/r1592257
Log:
- Replace \n with whitespace when checking for validation email pattern string

Modified:
    oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/GenericEmailParser.java

Modified: oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/GenericEmailParser.java
URL: http://svn.apache.org/viewvc/oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/GenericEmailParser.java?rev=1592257&r1=1592256&r2=1592257&view=diff
==============================================================================
--- oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/GenericEmailParser.java (original)
+++ oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/GenericEmailParser.java Sat May  3 17:54:03 2014
@@ -112,7 +112,7 @@ public class GenericEmailParser implemen
 
   private boolean isValidEmail(String emailText) {
     Pattern pattern = Pattern.compile(checkForPattern);
-    Matcher m = pattern.matcher(emailText);
+    Matcher m = pattern.matcher(emailText.replaceAll("\n", " "));
     return m.find();
   }