mirror of
https://github.com/houbb/sensitive-word.git
synced 2026-03-22 08:27:36 +08:00
[Feature] add for new
This commit is contained in:
@@ -230,7 +230,9 @@ Assert.assertEquals("[Ⓕⓤc⒦]", wordList.toString());
|
||||
```java
|
||||
final String text = "ⒻⒻⒻfⓤuⓤ⒰cⓒ⒦ the bad words";
|
||||
|
||||
List<String> wordList = SensitiveWordHelper.findAll(text);
|
||||
List<String> wordList = SensitiveWordBs.newInstance()
|
||||
.ignoreRepeat(true)
|
||||
.findAll(text);
|
||||
Assert.assertEquals("[ⒻⒻⒻfⓤuⓤ⒰cⓒ⒦]", wordList.toString());
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user