fix sent message message detection

This commit is contained in:
Bella 2020-04-05 14:15:45 -04:00
parent 3ff91918f0
commit 6623a281ab
No known key found for this signature in database
GPG Key ID: 815562EA23BFE344
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ public class MessageDetectionHelper {
}
public static boolean isDirectOther(boolean directSent, String message) {
return directSent && Pattern.compile("to .+:", Pattern.CASE_INSENSITIVE).matcher(message).find();
return directSent && Pattern.compile("to [0-9A-Za-z_]+:", Pattern.CASE_INSENSITIVE).matcher(message).find();
}
public static boolean isQueue(boolean queue, String message) {