Make custom highlights case-insensitive
This commit is contained in:
parent
f824036225
commit
d48830a1fd
@ -204,7 +204,7 @@ $(function() {
|
|||||||
var template = "msg";
|
var template = "msg";
|
||||||
|
|
||||||
if (!data.msg.highlight && !data.msg.self && (type === "message" || type === "notice") && highlights.some(function(h) {
|
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;
|
data.msg.highlight = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user