diff --git a/analysis/swearfilter/74-swearfilter.js b/analysis/swearfilter/74-swearfilter.js index 135c9455..394bca40 100644 --- a/analysis/swearfilter/74-swearfilter.js +++ b/analysis/swearfilter/74-swearfilter.js @@ -15,6 +15,8 @@ **/ var RED = require(process.env.NODE_RED_HOME+"/red/red"); +var badwords = require('badwords'); +if (badwords.length == 0 ) { return; } var badwordsRegExp = require('badwords/regexp'); function BadwordsNode(n) {