ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seanfi...@apache.org
Subject svn commit: r1771021 - /ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/RegexSectionizer.java
Date Wed, 23 Nov 2016 18:28:57 GMT
Author: seanfinan
Date: Wed Nov 23 18:28:57 2016
New Revision: 1771021

URL: http://svn.apache.org/viewvc?rev=1771021&view=rev
Log:
Case insensitive

Modified:
    ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/RegexSectionizer.java

Modified: ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/RegexSectionizer.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/RegexSectionizer.java?rev=1771021&r1=1771020&r2=1771021&view=diff
==============================================================================
--- ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/RegexSectionizer.java
(original)
+++ ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/RegexSectionizer.java
Wed Nov 23 18:28:57 2016
@@ -49,8 +49,10 @@ abstract public class RegexSectionizer e
       public SectionType( final String name, final String headerRegex, final String footerRegex,
                           final boolean shouldParse ) {
          __name = name;
-         __headerPattern = headerRegex == null ? null : Pattern.compile( headerRegex, Pattern.MULTILINE
);
-         __footerPattern = footerRegex == null ? null : Pattern.compile( footerRegex, Pattern.MULTILINE
);
+         __headerPattern = headerRegex == null ? null : Pattern
+               .compile( headerRegex, Pattern.MULTILINE | Pattern.CASE_INSENSITIVE );
+         __footerPattern = footerRegex == null ? null : Pattern
+               .compile( footerRegex, Pattern.MULTILINE | Pattern.CASE_INSENSITIVE );
          __shouldParse = shouldParse;
       }
    }



Mime
View raw message