bugfix
This commit is contained in:
parent
dabfa8d8d2
commit
60cf92fe3f
@ -135,8 +135,9 @@ class WordFilterSetting extends FilterSetting {
|
||||
}
|
||||
if (params.length && invalid.length) index += '_SOME';
|
||||
} else if (list === 'presets') {
|
||||
for (const word of words) {
|
||||
if (FilterPresets.regex[word]) params.push(FilterPresets.regex[word]);
|
||||
for (let word of words) {
|
||||
word = word.toLowerCase();
|
||||
if (FilterPresets.regex[word]) params.push(...FilterPresets.regex[word]);
|
||||
else invalid.push(word);
|
||||
}
|
||||
list = 'regex';
|
||||
|
Loading…
Reference in New Issue
Block a user