Skip to content

Commit 91b0aaa

Browse files
Bananeweizenuhafner
authored andcommitted
recognize \R for multiline parsing
\R matches _any_ unicode newline sequence, and may appear in custom groovy parsers besides the usual \r and \n.
1 parent 661b60b commit 91b0aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/main/java/io/jenkins/plugins/analysis/warnings/groovy/GroovyParser.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public GroovyParser(final String id, final String name,
8686
}
8787

8888
private static boolean containsNewline(final String expression) {
89-
return StringUtils.contains(expression, "\\n") || StringUtils.contains(expression, "\\r");
89+
return StringUtils.containsAny(expression, "\\n", "\\r", "\\R");
9090
}
9191

9292
/**

0 commit comments

Comments
 (0)