mirror of
https://github.com/houbb/sensitive-word.git
synced 2026-03-22 08:27:36 +08:00
release branch 0.13.2
This commit is contained in:
@@ -236,4 +236,11 @@
|
||||
|
||||
| 序号 | 变更类型 | 说明 | 时间 | 备注 |
|
||||
|:---|:-----|------------|:-------------------|:-------------------------------------------------|
|
||||
| 1 | F | 修正单词匹配 BUG | 2024-2-28 16:16:42 | https://github.com/houbb/sensitive-word/pull/47 |
|
||||
| 1 | F | 修正单词匹配 BUG | 2024-2-28 16:16:42 | https://github.com/houbb/sensitive-word/pull/47 |
|
||||
|
||||
# release_0.13.2
|
||||
|
||||
| 序号 | 变更类型 | 说明 | 时间 | 备注 |
|
||||
|:---|:-----|----------------------|:------------------|:-------------------------------------------------|
|
||||
| 1 | O | 优化部分2长度的英文,避免误判 | 2024-4-7 21:04:18 | |
|
||||
| 2 | O | 升级 heaven 版本到 v0.9.0 | 2024-4-7 21:04:18 | |
|
||||
@@ -82,7 +82,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.houbb</groupId>
|
||||
<artifactId>sensitive-word</artifactId>
|
||||
<version>0.13.1</version>
|
||||
<version>0.13.2</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
|
||||
4
pom.xml
4
pom.xml
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>com.github.houbb</groupId>
|
||||
<artifactId>sensitive-word</artifactId>
|
||||
<version>0.13.1</version>
|
||||
<version>0.13.2</version>
|
||||
|
||||
<properties>
|
||||
<!--============================== All Plugins START ==============================-->
|
||||
@@ -25,7 +25,7 @@
|
||||
<project.compiler.level>1.7</project.compiler.level>
|
||||
|
||||
<!--============================== INTER ==============================-->
|
||||
<heaven.version>0.6.0</heaven.version>
|
||||
<heaven.version>0.9.0</heaven.version>
|
||||
<opencc4j.version>1.8.1</opencc4j.version>
|
||||
|
||||
<!--============================== OTHER ==============================-->
|
||||
|
||||
@@ -10,7 +10,7 @@ ECHO "============================= RELEASE START..."
|
||||
|
||||
:: 版本号信息(需要手动指定)
|
||||
:::: 旧版本名称
|
||||
SET version=0.13.1
|
||||
SET version=0.13.2
|
||||
:::: 新版本名称
|
||||
SET newVersion=0.14.0
|
||||
:::: 组织名称
|
||||
|
||||
@@ -2499,7 +2499,6 @@
|
||||
9龙夺嫡之胤祹
|
||||
9龙夺嫡之胤祹txt
|
||||
9龙论坛
|
||||
QQ
|
||||
a1生1世7032226
|
||||
a2738625627
|
||||
a33335ab
|
||||
@@ -7862,7 +7861,6 @@ qq麻黄素销售
|
||||
qq黄体酮供应
|
||||
qq黄体酮提供
|
||||
qq黑鹰弓弩专卖
|
||||
qr
|
||||
queen8社长秘书のパンスト
|
||||
qvod亚洲色情电影
|
||||
qvod免费伦理电影
|
||||
@@ -8190,7 +8188,6 @@ xing伴侣
|
||||
xizi9588
|
||||
xi藏
|
||||
xqq11456
|
||||
xr
|
||||
xr7byqr
|
||||
xrnvs
|
||||
xrqtq
|
||||
@@ -8265,7 +8262,6 @@ yewem7ૢ2ૢ
|
||||
yin荡
|
||||
youjizz影视网
|
||||
you行
|
||||
yr
|
||||
yu1290703933
|
||||
yuanming喷你
|
||||
yueer521775了
|
||||
@@ -8279,7 +8275,6 @@ yyyy88997766
|
||||
yy通讯录
|
||||
yχ25511
|
||||
yχ255⒒
|
||||
y佳
|
||||
zang人
|
||||
zas159w
|
||||
zd份子
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.github.houbb.sensitive.word.data;
|
||||
|
||||
import com.github.houbb.heaven.util.io.FileUtil;
|
||||
import com.github.houbb.heaven.util.lang.CharUtil;
|
||||
import com.github.houbb.heaven.util.lang.StringUtil;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 数据初始化
|
||||
* @author binbin.hou
|
||||
* @since 0.9.0
|
||||
*/
|
||||
@Ignore
|
||||
public class DictRemoveTwoEnglishTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
final String sourceFile = "D:\\github\\sensitive-word\\src\\main\\resources\\dict.txt";
|
||||
final String targetFile = "D:\\github\\sensitive-word\\src\\test\\resources\\dict_v20240407.txt";
|
||||
|
||||
List<String> words = FileUtil.readAllLines(sourceFile);
|
||||
|
||||
for(String word : words) {
|
||||
String wordTrim = word.trim();
|
||||
// 如果是2
|
||||
if(wordTrim.length() == 2 && StringUtil.isEnglish(wordTrim)) {
|
||||
System.out.println(word);
|
||||
} else {
|
||||
FileUtil.append(targetFile, wordTrim);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
65143
src/test/resources/dict_v20240407.txt
Normal file
65143
src/test/resources/dict_v20240407.txt
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user