forked from Galactic/galactic-bot
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';
|
if (params.length && invalid.length) index += '_SOME';
|
||||||
} else if (list === 'presets') {
|
} else if (list === 'presets') {
|
||||||
for (const word of words) {
|
for (let word of words) {
|
||||||
if (FilterPresets.regex[word]) params.push(FilterPresets.regex[word]);
|
word = word.toLowerCase();
|
||||||
|
if (FilterPresets.regex[word]) params.push(...FilterPresets.regex[word]);
|
||||||
else invalid.push(word);
|
else invalid.push(word);
|
||||||
}
|
}
|
||||||
list = 'regex';
|
list = 'regex';
|
||||||
|
Loading…
Reference in New Issue
Block a user