1.0.9 • Published 7 years ago
fuckword2 v1.0.9
check illegal word 检测非法词
RegExp
var regexp = new RegExp("(?:" + fuckwords.join("|") + ")", "gi");
check
var fuckword2 = require('fuckword2');
var word = "fuck";
var checkResult = fuckword2.check(word);
if(!!checkResult){
console.log(word + ' is a illegal word!');
}