abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From calav...@apache.org
Subject svn commit: r696661 - /incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
Date Thu, 18 Sep 2008 14:26:21 GMT
Author: calavera
Date: Thu Sep 18 07:26:20 2008
New Revision: 696661

URL: http://svn.apache.org/viewvc?rev=696661&view=rev
Log:
fixes ABDERA-200: IRI: NumberFormatException for IRIs like http://www.example.org:/

This is the change: (\\d*) --> (\\d+) 

Modified:
    incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java

Modified: incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java?rev=696661&r1=696660&r2=696661&view=diff
==============================================================================
--- incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
(original)
+++ incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
Thu Sep 18 07:26:20 2008
@@ -653,7 +653,7 @@
       "^(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\\?([^#]*))?(?:#(.*))?");
   
   private static final Pattern AUTHORITYPATTERN =
-    Pattern.compile("^(?:(.*)?@)?((?:\\[.*\\])|(?:[^:]*))?(?::(\\d*))?");
+    Pattern.compile("^(?:(.*)?@)?((?:\\[.*\\])|(?:[^:]*))?(?::(\\d+))?");
   
   public static void preinit() {
     UnicodeCharacterDatabase.getCanonicalClass(1);
@@ -676,5 +676,5 @@
       fragment
     );
   }
-   
+  
 }



Mime
View raw message