Skip to content
Snippets Groups Projects
Commit 4cd88119 authored by Klaus-Dieter Quibeldey-Cirkel's avatar Klaus-Dieter Quibeldey-Cirkel
Browse files

Merge branch '691-fix-not-working-profanity-filter' into 'staging'

Resolve "Fix not working profanity filter"

Closes #691

See merge request arsnova/frag.jetzt!686
parents 80fcdf94 54436cde
Branches
Tags
No related merge requests found
...@@ -77,7 +77,7 @@ export class ProfanityFilterService { ...@@ -77,7 +77,7 @@ export class ProfanityFilterService {
profWords = this.profanityWords; profWords = this.profanityWords;
} }
const list = profWords.concat(this.getProfanityListFromStorage()); const list = profWords.concat(this.getProfanityListFromStorage());
if (list.length < 1) { if (list.length < 1 || !str) {
return [str, false]; return [str, false];
} }
const escapeRegex = /[.*+\-?^${}()|\[\]\\]/g; const escapeRegex = /[.*+\-?^${}()|\[\]\\]/g;
......
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