From a8965dadded68e9618a8421f64433745011fc62d Mon Sep 17 00:00:00 2001 From: Stephane Bailliez Date: Wed, 30 Jan 2002 21:04:31 +0000 Subject: [PATCH] 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 --- .../org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.java b/src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.java index a541dda9d..be14f0ff7 100644 --- a/src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.java +++ b/src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.java @@ -161,7 +161,8 @@ public class Jdk14RegexpMatcher implements RegexpMatcher { 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)) { cOptions |= Pattern.CASE_INSENSITIVE;