Skip to content

Commit 59eef50

Browse files
committed
Enables dotall mode.
1 parent e52f8ca commit 59eef50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/jp/sf/amateras/mockquery/util/StringUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,6 @@ public static boolean matchesRegex(String source, String target, boolean caseSen
369369
source = source.toLowerCase();
370370
target = target.toLowerCase();
371371
}
372-
return Pattern.matches(target, source);
372+
return Pattern.compile(target, Pattern.DOTALL).matcher(source).matches();
373373
}
374374
}

0 commit comments

Comments
 (0)