Code Monkey home page Code Monkey logo

dfa's People

Contributors

gghuaxina avatar justcodingnobb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dfa's Issues

发现了一个bug。

如果过滤sentence只有一个字或者匹配的敏感词库只有一个时候

用户词语长度为1 :
问题:curState.nodes为空,肯定不会走替换逻辑
纠正: 在for里面判断curState.nodes是否为空,为空直接替换

敏感词库长度为1:
问题:判断完m[w]之后,不会走for的逻辑 因为长度是等于不是小于
纠正:j <= len

没有过滤成功

使用了被注释的demo测试

let test = new SWF();
test.builtSWL();
let res = test.filter('肉洞');
console.log(res);//肉洞``` 

并没有被过滤,哪里不对吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.