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

Update profanity-filter.service.ts

parent 80fcdf94
No related merge requests found
......@@ -77,7 +77,7 @@ export class ProfanityFilterService {
profWords = this.profanityWords;
}
const list = profWords.concat(this.getProfanityListFromStorage());
if (list.length < 1) {
if (list.length < 1 || !str) {
return [str, false];
}
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