Skip to content
Snippets Groups Projects
Commit 67817dac authored by Ruben Bimberg's avatar Ruben Bimberg :computer:
Browse files

Remove word from profanity list

parent a91007e8
Branches
Tags
No related merge requests found
...@@ -15,8 +15,10 @@ export class ProfanityFilterService { ...@@ -15,8 +15,10 @@ export class ProfanityFilterService {
this.customProfanityWords = new Subject<string[]>(); this.customProfanityWords = new Subject<string[]>();
const badNL = BadWords['nl']; const badNL = BadWords['nl'];
badNL.splice(badNL.indexOf('nicht'), 1); badNL.splice(badNL.indexOf('nicht'), 1);
const badDE = BadWords['de'];
badDE.splice(badDE.indexOf('ische'), 1);
this.profanityWords = BadWords['en'] this.profanityWords = BadWords['en']
.concat(BadWords['de']) .concat(badDE)
.concat(BadWords['fr']) .concat(BadWords['fr'])
.concat(BadWords['ar']) .concat(BadWords['ar'])
.concat(BadWords['ru']) .concat(BadWords['ru'])
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment