mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
make error message reflect missing module...
ie just badwords... not badwords/regexp
This commit is contained in:
parent
636b9a23ba
commit
f8ed9cebeb
@ -15,6 +15,8 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
var RED = require(process.env.NODE_RED_HOME+"/red/red");
|
var RED = require(process.env.NODE_RED_HOME+"/red/red");
|
||||||
|
var badwords = require('badwords');
|
||||||
|
if (badwords.length == 0 ) { return; }
|
||||||
var badwordsRegExp = require('badwords/regexp');
|
var badwordsRegExp = require('badwords/regexp');
|
||||||
|
|
||||||
function BadwordsNode(n) {
|
function BadwordsNode(n) {
|
||||||
|
Loading…
Reference in New Issue
Block a user