From 8ac9f957dea8f12cafc8c9d532e4541df691dbb3 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Mon, 21 May 2018 20:58:05 +0200 Subject: Make nickname matching case-sensitive Perform case-sensitive matching for highlighting the own nickname in MUC messages and while checking whether to notify. --- src/main/java/de/pixart/messenger/services/NotificationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/de/pixart') 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) { -- cgit v1.2.3