We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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 init = SensitiveWordBs.newInstance() .wordAllow(WordAllows.chains(WordAllows.defaults(), () -> Lists.newArrayList("三黄片"))) .wordDeny(WordDenys.chains(WordDenys.defaults())) .ignoreRepeat(true) .ignoreChineseStyle(true).init(); init.addWord(); System.out.println(init.replace("三黄片"));
com.github.houbb.sensitive.word.bs.SensitiveWordBs#addWord(java.util.Collection<java.lang.String>)
然后如何动态添加白名单词组, 或者我控制台新增的白名单词组如何生效?
The text was updated successfully, but these errors were encountered:
优先匹配到了【黄片】,目前的白名单设计的只影响到了最初的字典初始化,感觉是设计缺陷。我后续考虑优化一下。
Sorry, something went wrong.
v0.21.0 已修正此问题,白名单较长,包含了黑名单的问题。
No branches or pull requests
这种情况如何让白名单“三黄片”生效。
com.github.houbb.sensitive.word.bs.SensitiveWordBs#addWord(java.util.Collection<java.lang.String>)
然后如何动态添加白名单词组, 或者我控制台新增的白名单词组如何生效?
The text was updated successfully, but these errors were encountered: