Author: fmeschbe
Date: Tue Dec  2 05:56:25 2008
New Revision: 722458

URL: http://svn.apache.org/viewvc?rev=722458&view=rev
Log:
SLING-750 Missing fix for regular expression replacement

Modified:
    
incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/MapEntry.java

Modified: 
incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/MapEntry.java
URL: 
http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/MapEntry.java?rev=722458&r1=722457&r2=722458&view=diff
==============================================================================
--- 
incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/MapEntry.java
 (original)
+++ 
incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/MapEntry.java
 Tue Dec  2 05:56:25 2008
@@ -80,11 +80,8 @@
         if (m.find()) {
             String[] redirects = getRedirect();
             String[] results = new String[redirects.length];
-            StringBuffer buf = new StringBuffer();
             for (int i=0; i < redirects.length; i++) {
-                m.appendReplacement(buf, redirects[i]);
-                m.appendTail(buf);
-                results[i] = buf.toString();
+                results[i] = m.replaceFirst(redirects[i]);
             }
             return results;
         }


Reply via email to