aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-05-21 20:58:05 +0200
committerChristian Schneppe <christian@pix-art.de>2018-05-21 20:58:05 +0200
commit8ac9f957dea8f12cafc8c9d532e4541df691dbb3 (patch)
tree8b30998772d603bb5b73d2fd0d147fdf44976119 /src/main/java/de/pixart
parent64b4d0115b677fa73b20c1389b24bbc9b1656221 (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/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/services/NotificationService.java2
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) {