diff --git a/plugin/src/main/java/io/jenkins/plugins/analysis/warnings/groovy/GroovyParser.java b/plugin/src/main/java/io/jenkins/plugins/analysis/warnings/groovy/GroovyParser.java index 4d38c2ed75..1a609f7769 100644 --- a/plugin/src/main/java/io/jenkins/plugins/analysis/warnings/groovy/GroovyParser.java +++ b/plugin/src/main/java/io/jenkins/plugins/analysis/warnings/groovy/GroovyParser.java @@ -86,7 +86,7 @@ public GroovyParser(final String id, final String name, } private static boolean containsNewline(final String expression) { - return StringUtils.contains(expression, "\\n") || StringUtils.contains(expression, "\\r"); + return StringUtils.containsAny(expression, "\\n", "\\r", "\\R"); } /**