make word mutes case insensitive (close #10724)
This commit is contained in:
parent
81c97b3749
commit
b84a10a6ec
@ -33,7 +33,9 @@ function checkWordMute(
|
||||
|
||||
if (
|
||||
keywords.length > 0 &&
|
||||
keywords.every((keyword) => text.includes(keyword))
|
||||
keywords.every((keyword) =>
|
||||
text.toLowerCase().includes(keyword.toLowerCase()),
|
||||
)
|
||||
)
|
||||
return true;
|
||||
} else {
|
||||
|
@ -26,7 +26,9 @@ function checkWordMute(
|
||||
|
||||
if (
|
||||
keywords.length > 0 &&
|
||||
keywords.every((keyword) => text.includes(keyword))
|
||||
keywords.every((keyword) =>
|
||||
text.toLowerCase().includes(keyword.toLowerCase()),
|
||||
)
|
||||
) {
|
||||
result.muted = true;
|
||||
result.matched.push(...keywords);
|
||||
|
Loading…
Reference in New Issue
Block a user