Skip to content

Commit 913f411

Browse files
committed
1 parent c3d5c94 commit 913f411

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app-ui/src/main/java/com/mercury/platform/ui/frame/titled/ChatScannerFrame.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ protected MessageMatcher match() {
206206
if (!message.contains("] $") && !message.contains("] #")) {
207207
return false;
208208
}
209-
message = StringUtils.substringAfter(message, ":").toLowerCase();
209+
final String separator = message.contains("] $") ? "] $" : "] #";
210+
message = StringUtils.substringAfter(message, separator).toLowerCase();
211+
message = StringUtils.substringAfter(message, ": ").toLowerCase();
210212
return notContains.stream().noneMatch(message::contains)
211213
&& contains.stream().anyMatch(message::contains);
212214
};

0 commit comments

Comments
 (0)