fix broken js lint

This commit is contained in:
Neil Lalonde 2016-11-08 17:59:51 -05:00
parent 13a40d2f99
commit f10520a5f2
1 changed files with 1 additions and 4 deletions

View File

@ -7,10 +7,7 @@ export function censor(text, censoredWords, censoredPattern) {
}
if (censoredPattern && censoredPattern.length > 0) {
try {
new RegExp(censoredPattern); // exception if invalid
patterns.push("(" + censoredPattern + ")");
} catch(e) {}
}
if (patterns.length) {