[Feature] add for new

This commit is contained in:
houbb
2025-02-17 12:56:25 +08:00
parent 49407d1489
commit a6536db859
2 changed files with 24 additions and 21 deletions

View File

@@ -502,7 +502,7 @@ Assert.assertTrue(wordBs.contains(text));
其中各项配置的说明如下:
| 序号 | 方法 | 说明 | 默认值 |
|:---|:---------------------|:-----------------------------|:------|
|:---|:--------------------|:-----------------------------|:------|
| 1 | ignoreCase | 忽略大小写 | true |
| 2 | ignoreWidth | 忽略半角圆角 | true |
| 3 | ignoreNumStyle | 忽略数字的写法 | true |
@@ -523,6 +523,7 @@ Assert.assertTrue(wordBs.contains(text));
| 18 | wordCheckUrl | URL检测策略(v0.25.0开始支持) | `(WordChecks.url()` |
| 19 | wordCheckIpv4 | ipv4检测策略(v0.25.0开始支持) | `WordChecks.ipv4()` |
| 20 | wordCheckWord | 敏感词检测策略(v0.25.0开始支持) | `WordChecks.word()` |
| 21 | wordReplace | 替换策略 | `WordReplaces.defaults()` |
## 内存资源的释放

View File

@@ -7,6 +7,7 @@ import com.github.houbb.sensitive.word.support.allow.WordAllows;
import com.github.houbb.sensitive.word.support.check.WordChecks;
import com.github.houbb.sensitive.word.support.deny.WordDenys;
import com.github.houbb.sensitive.word.support.ignore.SensitiveWordCharIgnores;
import com.github.houbb.sensitive.word.support.replace.WordReplaces;
import com.github.houbb.sensitive.word.support.resultcondition.WordResultConditions;
import com.github.houbb.sensitive.word.support.tag.WordTags;
import org.junit.Assert;
@@ -51,6 +52,7 @@ public class SensitiveWordBsConfigTest {
.wordResultCondition(WordResultConditions.alwaysTrue())
.wordAllow(WordAllows.defaults())
.wordDeny(WordDenys.defaults())
.wordReplace(WordReplaces.defaults())
.init();
}