mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
Merge pull request #565 from thelounge/astorije/439-case-insensitive-highlights
Make custom highlights case-insensitive
This commit is contained in:
commit
36a21bacac
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue