From 60cf92fe3f405dffeeeb7c2da37cb866a01829b7 Mon Sep 17 00:00:00 2001 From: Erik <33332790+Navy-gif@users.noreply.github.com> Date: Tue, 26 Jul 2022 01:11:29 +0300 Subject: [PATCH] bugfix --- src/structure/components/settings/moderation/WordFilter.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/structure/components/settings/moderation/WordFilter.js b/src/structure/components/settings/moderation/WordFilter.js index 5ba066c..26c49f2 100644 --- a/src/structure/components/settings/moderation/WordFilter.js +++ b/src/structure/components/settings/moderation/WordFilter.js @@ -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';