diff --git a/src/app/services/util/profanity-filter.service.ts b/src/app/services/util/profanity-filter.service.ts index abf28369532eab09f468ca218f89e5bb6004e69f..73045faea036f26f3e2854f0ce53f4ffad7f5bc9 100644 --- a/src/app/services/util/profanity-filter.service.ts +++ b/src/app/services/util/profanity-filter.service.ts @@ -17,16 +17,7 @@ export class ProfanityFilterService { badNL.splice(badNL.indexOf('nicht'), 1); const badDE = BadWords['de']; badDE.splice(badDE.indexOf('ische'), 1); - badDE.push('frage'); - badDE.push('antwort'); - badDE.push('aufgabe'); - badDE.push('hallo'); - badDE.push('test'); - badDE.push('bzw'); - badDE.push('muss'); - const badEN = BadWords['en']; - badEN.push('more to come'); - this.profanityWords = badEN + this.profanityWords = BadWords['en'] .concat(badDE) .concat(BadWords['fr']) .concat(BadWords['ar']) @@ -74,7 +65,7 @@ export class ProfanityFilterService { localStorage.removeItem(this.profanityKey); } - filterProfanityWords(str: string, censorPartialWordsCheck: boolean, censorLanguageSpecificCheck: boolean, lang?: string) { + filterProfanityWords(str: string, censorPartialWordsCheck: boolean, censorLanguageSpecificCheck: boolean, lang?: string){ let filteredString = str; let profWords = []; if (censorLanguageSpecificCheck) {