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);
+ }
}
;