Nuclear Potato Monster

    fuckword2

    1.0.9 • Public • Published

    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!');
    }
     

    Keywords

    Install

    npm i fuckword2

    DownloadsWeekly Downloads

    2

    Version

    1.0.9

    License

    ISC

    Last publish

    Collaborators

    • xiaodong.li