We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我测试的敏感词为:政府,国家,共产。白名单为:共产党。 执行:sensitiveWordBs.contains(“共产党是白名单不会被检测”)的结果是true。 执行:sensitiveWordBs.findAll(“共产党是白名单不会被检测”)的结果是 共产。 我的期望应该是返回false才对。
附config如下: SensitiveWordBs sensitiveWordBs = SensitiveWordBs.newInstance() .wordAllow(WordAllows.chains(WordAllows.system(), myWordAllow)) .wordDeny(myWordDeny) .init();
---------我上次自己的回复好像被吃掉了 经查看源码,疑问已解决。白名单中只有跟敏感词一模一样的才会放过,只是包含的话不会放过。 虽然明白了原因,但是这个白名单实现方式不能解决我的问题。。。
The text was updated successfully, but these errors were encountered:
老哥你问题解决没,我遇到的问题是deny无效
Sorry, something went wrong.
No branches or pull requests
我测试的敏感词为:政府,国家,共产。白名单为:共产党。
执行:sensitiveWordBs.contains(“共产党是白名单不会被检测”)的结果是true。
执行:sensitiveWordBs.findAll(“共产党是白名单不会被检测”)的结果是 共产。
我的期望应该是返回false才对。
附config如下:
SensitiveWordBs sensitiveWordBs = SensitiveWordBs.newInstance()
.wordAllow(WordAllows.chains(WordAllows.system(), myWordAllow))
.wordDeny(myWordDeny)
.init();
---------我上次自己的回复好像被吃掉了
经查看源码,疑问已解决。白名单中只有跟敏感词一模一样的才会放过,只是包含的话不会放过。
虽然明白了原因,但是这个白名单实现方式不能解决我的问题。。。
The text was updated successfully, but these errors were encountered: