cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r394558 - /cocoon/branches/BRANCH_2_1_X/src/jdk1.4/java/org/apache/cocoon/transformation/EncodeURLTransformer.java
Date Sun, 16 Apr 2006 21:14:25 GMT
Author: rgoers
Date: Sun Apr 16 14:14:22 2006
New Revision: 394558

URL: http://svn.apache.org/viewcvs?rev=394558&view=rev
Log:
use lookingAt instead of matches to match only the beginning

Modified:
    cocoon/branches/BRANCH_2_1_X/src/jdk1.4/java/org/apache/cocoon/transformation/EncodeURLTransformer.java

Modified: cocoon/branches/BRANCH_2_1_X/src/jdk1.4/java/org/apache/cocoon/transformation/EncodeURLTransformer.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/jdk1.4/java/org/apache/cocoon/transformation/EncodeURLTransformer.java?rev=394558&r1=394557&r2=394558&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/jdk1.4/java/org/apache/cocoon/transformation/EncodeURLTransformer.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/jdk1.4/java/org/apache/cocoon/transformation/EncodeURLTransformer.java
Sun Apr 16 14:14:22 2006
@@ -107,13 +107,13 @@
      * Configuration default exclude pattern,
      * ie img/@src
      */
-    public final static String EXCLUDE_NAME_DEFAULT = "img/@src=.*";
+    public final static String EXCLUDE_NAME_DEFAULT = "img/@src=";
 
     /**
      * Configuration default exclude pattern,
      * ie .*\/@href|.*\/@action|frame/@src
      */
-    public final static String INCLUDE_NAME_DEFAULT = ".*/@href=.*|.*/@action=.*|frame/@src=.*";
+    public final static String INCLUDE_NAME_DEFAULT = ".*/@href=|.*/@action=|frame/@src=";
 
     private String includeNameConfigure = INCLUDE_NAME_DEFAULT;
     private String excludeNameConfigure = EXCLUDE_NAME_DEFAULT;
@@ -395,7 +395,7 @@
          *   false.
          */
         private boolean matchesExcludesElementAttribute(String element_attr_name) {
-            boolean match = excludeNameRE.matcher(element_attr_name).matches();
+            boolean match = excludeNameRE.matcher(element_attr_name).lookingAt();
             return match;
         }
 
@@ -408,7 +408,7 @@
          *   false.
          */
         private boolean matchesIncludesElementAttribute(String element_attr_name) {
-            boolean match = includeNameRE.matcher(element_attr_name).matches();
+            boolean match = includeNameRE.matcher(element_attr_name).lookingAt();
             return match;
         }
     }



Mime
View raw message