From: Krishan <33421343+kfiven@users.noreply.github.com> Date: Sun, 25 May 2025 10:21:19 +0000 (+0530) Subject: Fix additional spam string matching (#2339) X-Git-Tag: v4.8.1~5 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=83057ebbd465842cdcbf1320a96afd2ac09ae483;p=rainny.git Fix additional spam string matching (#2339) --- diff --git a/src/app/plugins/bad-words.ts b/src/app/plugins/bad-words.ts index a7ca468..bb6073d 100644 --- a/src/app/plugins/bad-words.ts +++ b/src/app/plugins/bad-words.ts @@ -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))