From d48830a1fdbacb15e490816f7f753e709661ea37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Tue, 16 Aug 2016 00:24:20 -0400 Subject: [PATCH] Make custom highlights case-insensitive --- client/js/lounge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index b0193469..167ba0b3 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -204,7 +204,7 @@ $(function() { var template = "msg"; if (!data.msg.highlight && !data.msg.self && (type === "message" || type === "notice") && highlights.some(function(h) { - return data.msg.text.indexOf(h) > -1; + return data.msg.text.toLocaleLowerCase().indexOf(h.toLocaleLowerCase()) > -1; })) { data.msg.highlight = true; }