diff --git a/CHANGE_LOG.md b/CHANGE_LOG.md index 46309f5..b60a826 100644 --- a/CHANGE_LOG.md +++ b/CHANGE_LOG.md @@ -148,3 +148,11 @@ | 1 | O | 移除冗余的耗时统计 | 2023-06-06 23:51:58 | | | 2 | A | 优化代码实现方式,添加工具类方法 | 2023-06-06 23:51:58 | | + +# release_0.3.1 + +| 序号 | 变更类型 | 说明 | 时间 | 备注 | +|:---|:-----|:------|:--------------------|:------------------------------------------------| +| 1 | O | 敏感词添加 | 2023-06-06 23:51:58 | 幸运/幸运儿/17年前/1条/1梯两户/1比1/年检/幸存/幸运/幸运儿/恶搞/游戏机/日/草 | +| 2 | A | 敏感词添加 | 2023-06-06 23:51:58 | SB | + diff --git a/README.md b/README.md index 1c8a0ad..2a49042 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ v0.3.0 变更: com.github.houbb sensitive-word - 0.3.0 + 0.3.1 ``` diff --git a/pom.xml b/pom.xml index 58f1d6b..cba3ac9 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.github.houbb sensitive-word - 0.3.0 + 0.3.1 diff --git a/release.bat b/release.bat index c267b31..0a496c7 100644 --- a/release.bat +++ b/release.bat @@ -10,9 +10,9 @@ ECHO "============================= RELEASE START..." :: 版本号信息(需要手动指定) :::: 旧版本名称 -SET version=0.3.0 +SET version=0.3.1 :::: 新版本名称 -SET newVersion=0.4.0 +SET newVersion=0.3.2 :::: 组织名称 SET groupName=com.github.houbb :::: 项目名称 diff --git a/src/main/resources/dict.txt b/src/main/resources/dict.txt index 670e952..d15c5e8 100644 --- a/src/main/resources/dict.txt +++ b/src/main/resources/dict.txt @@ -94,7 +94,6 @@ 17大 17岁处女小阴唇张开 17岁处女小阴唇张开淫水流出图强奸免费淫电影 -17年前 17日向省属媒体发出禁令 17权力布局 17爱网 @@ -429,19 +428,16 @@ 1本道迅雷下载区 1本道高清无码 1杆嫖江湖 -1条 1条最新邮件 1柱擎天 1根材激情5月天 1根粗大神棍 -1梯两户 1次可看4位meinv同床较劲很可爱的女主角 1次可看4位美女同床较劲很可爱的女主角 1次性福就好 1次性通呖荚 1次性高分通过考试 1次高分通过考试 -1比1 1比1仿真枪专卖 1氧化2氟 1氧化汞 @@ -7913,6 +7909,7 @@ s2乙基磺酰基乙基 s4氧代 s5甲氧基4氧代4h吡喃2基甲基o s5甲氨基2氧代134噻2唑32h基甲基o +sb sbrnekp sehqqr sex大型色站 @@ -29743,20 +29740,17 @@ z以留吧以其以武 年收入赶超微软 年春衫薄 年月褃转化为力 -年检 年的事 年福纯 年轻高知团系接班 幵苞价格 幸30福52就90会60起16航 幸孕弃妃把朕搞翻了 -幸存 幸田来未txt下载 幸田梨纱种子视频 幸福航线 幸福花园 幸福蜜月30天 -幸运 幸运52发生的真实笑话 幸运52老公比划老婆猜 幸运之星 @@ -31603,7 +31597,6 @@ z以留吧以其以武 恶心部门 恶性殴斗案件 恶意灌水 -恶搞 恶搞人民币 恶搞晚会 恶虫威 @@ -38506,7 +38499,6 @@ z以留吧以其以武 无颜美女 无马步兵营 既在户外放松自己还可以扩展自己的朋友圈 -日 日9城 日b 日b么 @@ -45250,7 +45242,6 @@ z以留吧以其以武 游戏指导员 游戏新干线 游戏新断线 -游戏机 游戏机破解 游戏橘子 游戏监督员 @@ -54681,7 +54672,6 @@ z以留吧以其以武 茶鱼 茶鱼论坛 荆棘护卫兵 -草 草bbbbbbb 草你 草你丫 diff --git a/src/main/resources/sensitive_word_allow.txt b/src/main/resources/sensitive_word_allow.txt index e69de29..3af8b10 100644 --- a/src/main/resources/sensitive_word_allow.txt +++ b/src/main/resources/sensitive_word_allow.txt @@ -0,0 +1,14 @@ +生日快乐 +曹操 +幸运 +幸运儿 +17年前 +1条 +1梯两户 +1比1 +年检 +幸存 +幸运 +幸运儿 +恶搞 +游戏机 \ No newline at end of file diff --git a/src/test/java/com/github/houbb/sensitive/word/bugs/b29/Bug29Test.java b/src/test/java/com/github/houbb/sensitive/word/bugs/b29/Bug29Test.java new file mode 100644 index 0000000..212b0f7 --- /dev/null +++ b/src/test/java/com/github/houbb/sensitive/word/bugs/b29/Bug29Test.java @@ -0,0 +1,17 @@ +package com.github.houbb.sensitive.word.bugs.b29; + +import com.github.houbb.sensitive.word.core.SensitiveWordHelper; +import org.junit.Assert; +import org.junit.Test; + +public class Bug29Test { + + @Test + public void test() { + String text = "生日快乐"; + + Assert.assertFalse(SensitiveWordHelper.contains(text)); + Assert.assertEquals("[]", SensitiveWordHelper.findAll(text).toString()); + } + +} diff --git a/src/test/java/com/github/houbb/sensitive/word/bugs/b31/Bug31Test.java b/src/test/java/com/github/houbb/sensitive/word/bugs/b31/Bug31Test.java new file mode 100644 index 0000000..755d44b --- /dev/null +++ b/src/test/java/com/github/houbb/sensitive/word/bugs/b31/Bug31Test.java @@ -0,0 +1,17 @@ +package com.github.houbb.sensitive.word.bugs.b31; + +import com.github.houbb.sensitive.word.core.SensitiveWordHelper; +import org.junit.Assert; +import org.junit.Test; + +public class Bug31Test { + + @Test + public void lettersTest() { + String text = "你是SB吧"; + + Assert.assertTrue(SensitiveWordHelper.contains(text)); + Assert.assertEquals("[SB]", SensitiveWordHelper.findAll(text).toString()); + } + +}