chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1041714 - /incubator/chemistry/playground/chemistry-opencmis-orderlyvalidator/src/antlr/org/apache/chemistry/opencmis/orderly/Orderly.g
Date Fri, 03 Dec 2010 07:40:42 GMT
Author: jens
Date: Fri Dec  3 07:40:42 2010
New Revision: 1041714

URL: http://svn.apache.org/viewvc?rev=1041714&view=rev
Log:
fix a bug in regex patterns

Modified:
    incubator/chemistry/playground/chemistry-opencmis-orderlyvalidator/src/antlr/org/apache/chemistry/opencmis/orderly/Orderly.g

Modified: incubator/chemistry/playground/chemistry-opencmis-orderlyvalidator/src/antlr/org/apache/chemistry/opencmis/orderly/Orderly.g
URL: http://svn.apache.org/viewvc/incubator/chemistry/playground/chemistry-opencmis-orderlyvalidator/src/antlr/org/apache/chemistry/opencmis/orderly/Orderly.g?rev=1041714&r1=1041713&r2=1041714&view=diff
==============================================================================
--- incubator/chemistry/playground/chemistry-opencmis-orderlyvalidator/src/antlr/org/apache/chemistry/opencmis/orderly/Orderly.g
(original)
+++ incubator/chemistry/playground/chemistry-opencmis-orderlyvalidator/src/antlr/org/apache/chemistry/opencmis/orderly/Orderly.g
Fri Dec  3 07:40:42 2010
@@ -157,8 +157,11 @@ string_prefix[Map<Object, Object> map]
 string_suffix [Map<Object, Object> map]
     :  
 	regex=OPTIONAL_PERL_REGEX? definition_suffix[map] { 
-		if ($regex != null)
-			map.put("pattern", $OPTIONAL_PERL_REGEX.text); 
+		if ($regex != null) {
+	        String s = $OPTIONAL_PERL_REGEX.text;
+   	        s = s.substring(1, s.length()-1); // remove quotes	
+			map.put("pattern", s);
+		} 
 	}
 	;
 



Mime
View raw message