This commit is contained in:
Erik 2022-07-26 01:11:29 +03:00 committed by GitHub
parent dabfa8d8d2
commit 60cf92fe3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';