mirror of
https://github.com/RGBCube/cinny
synced 2025-07-30 16:37:46 +00:00
Fix additional spam string matching (#2339)
This commit is contained in:
parent
c51ba9670e
commit
83057ebbd4
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue