Skip to content
Permalink
Browse files
Merge pull request #312 from bpedersen2/39010
[JENKINS-39010] CommentAddedRegex: Input is a multiline message
  • Loading branch information
rsandell committed May 10, 2017
2 parents 31a31de + 79fcc68 commit 25b4597276f70fa22bbd1154c18c48b5798666ce
Showing with 2 additions and 1 deletion.
  1. +2 −1 ...yericsson/hudson/plugins/gerrit/trigger/hudsontrigger/events/PluginCommentAddedContainsEvent.java
@@ -111,8 +111,9 @@ public boolean match(GerritTriggeredEvent event) {
return false;
}
Pattern p = Pattern
.compile(commentAddedCommentContains, Pattern.DOTALL);
.compile(commentAddedCommentContains, Pattern.DOTALL | Pattern.MULTILINE);
CommentAdded ca = (CommentAdded)event;
logger.debug("input comment: '{}'", ca.getComment());
return p.matcher(ca.getComment()).find();
}
}

0 comments on commit 25b4597

Please sign in to comment.