Author: hboutemy
Date: Thu Apr  8 20:20:31 2010
New Revision: 932087

URL: http://svn.apache.org/viewvc?rev=932087&view=rev
Log:
added links support to description parsing

Modified:
    
maven/archetype/trunk/archetype-common/src/test/java/org/apache/maven/archetype/test/WikiArchetypeDataSource.java

Modified: 
maven/archetype/trunk/archetype-common/src/test/java/org/apache/maven/archetype/test/WikiArchetypeDataSource.java
URL: 
http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-common/src/test/java/org/apache/maven/archetype/test/WikiArchetypeDataSource.java?rev=932087&r1=932086&r2=932087&view=diff
==============================================================================
--- 
maven/archetype/trunk/archetype-common/src/test/java/org/apache/maven/archetype/test/WikiArchetypeDataSource.java
 (original)
+++ 
maven/archetype/trunk/archetype-common/src/test/java/org/apache/maven/archetype/test/WikiArchetypeDataSource.java
 Thu Apr  8 20:20:31 2010
@@ -52,7 +52,7 @@ public class WikiArchetypeDataSource
 
     static String cleanup( String val )
     {
-        val = val.replaceAll( "\\r|\\n|\\s{2,}", "" );
+        val = val.replaceAll( "\\r|\\n|\\s{2,}|\\[|\\|[^\\]]+]|\\]", "" );
         return val;
     }
 
@@ -101,7 +101,7 @@ public class WikiArchetypeDataSource
         // | ArtifactId | GroupId | Version | Repository | Description |
         Pattern ptn =
             Pattern.compile(
-                "<br>\\|([-a-zA-Z0-9_. ]+)\\|([-a-zA-Z0-9_. 
]+)\\|([-a-zA-Z0-9_. ]+)\\|([-a-zA-Z0-9_.:/ \\[\\],]+)\\|([^|]+)\\|"
+                "<br>\\|([-a-zA-Z0-9_. ]+)\\|([-a-zA-Z0-9_. 
]+)\\|([-a-zA-Z0-9_. ]+)\\|([-a-zA-Z0-9_.:/ \\[\\],]+)\\|(.+) \\|"
             );
 
         Matcher m = ptn.matcher( pageSource );


Reply via email to