Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Exslims committed Jan 22, 2018
1 parent c3d5c94 commit 913f411
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ protected MessageMatcher match() {
if (!message.contains("] $") && !message.contains("] #")) {
return false;
}
message = StringUtils.substringAfter(message, ":").toLowerCase();
final String separator = message.contains("] $") ? "] $" : "] #";
message = StringUtils.substringAfter(message, separator).toLowerCase();
message = StringUtils.substringAfter(message, ": ").toLowerCase();
return notContains.stream().noneMatch(message::contains)
&& contains.stream().anyMatch(message::contains);
};
Expand Down

0 comments on commit 913f411

Please sign in to comment.