diff options
-rw-r--r-- | src/util/util/BannedWords.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/util/BannedWords.ts b/src/util/util/BannedWords.ts index e56635d5..04c504f5 100644 --- a/src/util/util/BannedWords.ts +++ b/src/util/util/BannedWords.ts @@ -1,5 +1,6 @@ import fs from "fs/promises"; import path from "path"; +import { InvisibleCharacters } from "./InvisibleCharacters"; var words: string[]; @@ -20,6 +21,7 @@ export const BannedWords = { get: () => words, find: (val: string) => { + InvisibleCharacters.forEach(x => val = val.replaceAll(x, "")); return words.some((x) => val.indexOf(x) != -1); }, }; |