diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-05-21 20:58:05 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-05-21 20:58:05 +0200 |
commit | 8ac9f957dea8f12cafc8c9d532e4541df691dbb3 (patch) | |
tree | 8b30998772d603bb5b73d2fd0d147fdf44976119 /src/main/java/de | |
parent | 64b4d0115b677fa73b20c1389b24bbc9b1656221 (diff) |
Make nickname matching case-sensitive
Perform case-sensitive matching for highlighting the own nickname in MUC
messages and while checking whether to notify.
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/NotificationService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java index 4b190c65e..ede62630c 100644 --- a/src/main/java/de/pixart/messenger/services/NotificationService.java +++ b/src/main/java/de/pixart/messenger/services/NotificationService.java @@ -75,7 +75,7 @@ public class NotificationService { } public static Pattern generateNickHighlightPattern(final String nick) { - return Pattern.compile("(?<=(^|\\s))" + Pattern.quote(nick) + "\\b", Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE); + return Pattern.compile("(?<=(^|\\s))" + Pattern.quote(nick) + "\\b"); } public boolean notify(final Message message) { |