fix filters not being case-insensitive
This commit is contained in:
parent
921c6fd202
commit
fc8fdf7bc3
1 changed files with 2 additions and 1 deletions
|
|
@ -13,7 +13,8 @@ export const muteFilterHits = (muteFilters, status) => {
|
||||||
if (expires !== null && expires < Date.now()) return false
|
if (expires !== null && expires < Date.now()) return false
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'word': {
|
case 'word': {
|
||||||
if (statusText.includes(value) || statusSummary.includes(value)) {
|
const lowercaseValue = value.toLowerCase()
|
||||||
|
if (statusText.toLowerCase().includes(lowercaseValue) || statusSummary.toLowerCase().includes(lowercaseValue)) {
|
||||||
return { hide, name }
|
return { hide, name }
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue