You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2011/05/30 23:08:11 UTC

svn commit: r1129373 - /incubator/jena/Jena2/ARQ/trunk/src/org/openjena/riot/LangTag.java

Author: andy
Date: Mon May 30 21:08:11 2011
New Revision: 1129373

URL: http://svn.apache.org/viewvc?rev=1129373&view=rev
Log:
Fix private use langtags syntax.

Modified:
    incubator/jena/Jena2/ARQ/trunk/src/org/openjena/riot/LangTag.java

Modified: incubator/jena/Jena2/ARQ/trunk/src/org/openjena/riot/LangTag.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/src/org/openjena/riot/LangTag.java?rev=1129373&r1=1129372&r2=1129373&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/src/org/openjena/riot/LangTag.java (original)
+++ incubator/jena/Jena2/ARQ/trunk/src/org/openjena/riot/LangTag.java Mon May 30 21:08:11 2011
@@ -120,7 +120,7 @@ public class LangTag
                                                         ) ;
     
     // Private use forms "x-"
-    private static final String privateuseRE    = "[xX]-[a-zA-Z0-9]{1,8}" ; 
+    private static final String privateuseRE    = "^[xX](-[a-zA-Z0-9]{1,8})*$" ; 
     // In general, this can look like a langtag but there are no registered forms that do so.
     // This is for the "i-" forms only.
     private static final String grandfatheredRE = "i(?:-[a-zA-Z0-9]{2,8}){1,2}" ;  
@@ -265,7 +265,7 @@ public class LangTag
 
             if ( parts == null )
             {
-                System.out.print("  ==>  null") ;
+                System.out.print("  ==>  Illegal") ;
             }
             else
             {