Fix additional spam string matching (#2339)
authorKrishan <33421343+kfiven@users.noreply.github.com>
Sun, 25 May 2025 10:21:19 +0000 (15:51 +0530)
committerGitHub <noreply@github.com>
Sun, 25 May 2025 10:21:19 +0000 (15:51 +0530)
src/app/plugins/bad-words.ts

index a7ca468f3911cee1b8436062d6571167aa73d542..bb6073d8a2a9747edff88cf77b4f61bf2e738e75 100644 (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))