Author: pkluegl Date: Fri Jun 21 13:32:53 2013 New Revision: 1495430 URL: http://svn.apache.org/r1495430 Log: UIMA-3019 - added flag if case_insensitive is set
Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/condition/RegExpCondition.java Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/condition/RegExpCondition.java URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/condition/RegExpCondition.java?rev=1495430&r1=1495429&r2=1495430&view=diff ============================================================================== --- uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/condition/RegExpCondition.java (original) +++ uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/condition/RegExpCondition.java Fri Jun 21 13:32:53 2013 @@ -61,7 +61,7 @@ public class RegExpCondition extends Ter String coveredText = annotation.getCoveredText(); Pattern regularExpPattern = null; if (ignore) { - regularExpPattern = Pattern.compile(stringValue, Pattern.CASE_INSENSITIVE); + regularExpPattern = Pattern.compile(stringValue, Pattern.CASE_INSENSITIVE + Pattern.UNICODE_CASE); } else { regularExpPattern = Pattern.compile(stringValue); } @@ -70,7 +70,7 @@ public class RegExpCondition extends Ter String variableValue = variable.getStringValue(element.getParent(), annotation, stream); Pattern regularExpPattern = null; if (ignore) { - regularExpPattern = Pattern.compile(stringValue, Pattern.CASE_INSENSITIVE); + regularExpPattern = Pattern.compile(stringValue, Pattern.CASE_INSENSITIVE + Pattern.UNICODE_CASE); } else { regularExpPattern = Pattern.compile(stringValue); }