1
Fork 0
mirror of https://github.com/RGBCube/cinny synced 2025-07-30 00:17:45 +00:00

Fix additional spam string matching (#2339)

This commit is contained in:
Krishan 2025-05-25 15:51:19 +05:30 committed by GitHub
parent c51ba9670e
commit 83057ebbd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
import * as badWords from 'badwords-list';
import { sanitizeForRegex } from '../utils/regex';
const additionalBadWords: string[] = ['Torture', 'T0rture'];
const additionalBadWords: string[] = ['torture', 't0rture'];
const fullBadWordList = additionalBadWords.concat(
badWords.array.filter((word) => !additionalBadWords.includes(word))