struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject svn commit: r123951 - /struts/sandbox/trunk/struts-shale/src/java/org/apache/shale/application/AbstractRegExpFilter.java
Date Mon, 03 Jan 2005 08:02:20 GMT
Author: craigmcc
Date: Mon Jan  3 00:02:18 2005
New Revision: 123951

URL: http://svn.apache.org/viewcvs?view=rev&rev=123951
Log:
Correct regular expression parsing rules.

Modified:
   struts/sandbox/trunk/struts-shale/src/java/org/apache/shale/application/AbstractRegExpFilter.java

Modified: struts/sandbox/trunk/struts-shale/src/java/org/apache/shale/application/AbstractRegExpFilter.java
Url: http://svn.apache.org/viewcvs/struts/sandbox/trunk/struts-shale/src/java/org/apache/shale/application/AbstractRegExpFilter.java?view=diff&rev=123951&p1=struts/sandbox/trunk/struts-shale/src/java/org/apache/shale/application/AbstractRegExpFilter.java&r1=123950&p2=struts/sandbox/trunk/struts-shale/src/java/org/apache/shale/application/AbstractRegExpFilter.java&r2=123951
==============================================================================
--- struts/sandbox/trunk/struts-shale/src/java/org/apache/shale/application/AbstractRegExpFilter.java
(original)
+++ struts/sandbox/trunk/struts-shale/src/java/org/apache/shale/application/AbstractRegExpFilter.java
Mon Jan  3 00:02:18 2005
@@ -270,7 +270,15 @@
         // Set up to parse the specified expression
         StreamTokenizer st =
           new StreamTokenizer(new StringReader(expr));
+        st.eolIsSignificant(false);
         st.lowerCaseMode(false);
+        st.slashSlashComments(false);
+        st.slashStarComments(false);
+        st.wordChars(0x00, 0xff);
+        st.quoteChar('\'');
+        st.quoteChar('"');
+        st.whitespaceChars(0, ' ');
+        st.whitespaceChars(',', ',');
         List list = new ArrayList();
         int type = 0;
 
@@ -298,4 +306,4 @@
     }
 
 
-}
\ No newline at end of file
+}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message