Turns on multiline matching for regex_compile Now the pattern generated from regex_compile will match on a line-by-line basis, useful for matching a pattern in a multi-line commit message. Change-Id: I3db9ac5f9597c360fc7600ce3b33dfe0cda7d90e
diff --git a/src/builtin/PRED_regex_compile_2.java b/src/builtin/PRED_regex_compile_2.java index 142234f..5c4ef37 100644 --- a/src/builtin/PRED_regex_compile_2.java +++ b/src/builtin/PRED_regex_compile_2.java
@@ -37,7 +37,7 @@ if (!a1.isSymbol()) { throw new IllegalTypeException(this, 1, "atom", a1); } - Pattern pattern = Pattern.compile(a1.name()); + Pattern pattern = Pattern.compile(a1.name(), Pattern.MULTILINE); if (!a2.unify(new JavaObjectTerm(pattern), engine.trail)) { return engine.fail();