Browse Source

Prepare for changing listener interface and event types.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271009 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
a8965dadde
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.java

+ 2
- 1
src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.java View File

@@ -161,7 +161,8 @@ public class Jdk14RegexpMatcher implements RegexpMatcher {


protected int getCompilerOptions(int options) protected int getCompilerOptions(int options)
{ {
int cOptions = 0;
// be strict about line separator
int cOptions = Pattern.UNIX_LINES;


if (RegexpUtil.hasFlag(options, MATCH_CASE_INSENSITIVE)) { if (RegexpUtil.hasFlag(options, MATCH_CASE_INSENSITIVE)) {
cOptions |= Pattern.CASE_INSENSITIVE; cOptions |= Pattern.CASE_INSENSITIVE;


Loading…
Cancel
Save