[Feature] add for new

This commit is contained in:
houbb
2020-01-13 20:33:28 +08:00
parent 14b7dc74ac
commit 2b99548b36
2 changed files with 8 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
<groupId>com.github.houbb</groupId>
<artifactId>sensitive-word</artifactId>
<version>0.0.10</version>
<version>0.0.11-SNAPSHOT</version>
<properties>
<!--============================== All Plugins START ==============================-->

View File

@@ -2,12 +2,17 @@ package com.github.houbb.sensitive.word.support.check;
import com.github.houbb.heaven.annotation.ThreadSafe;
import com.github.houbb.heaven.support.instance.impl.Instances;
import com.github.houbb.heaven.util.io.FileUtil;
import com.github.houbb.heaven.util.lang.NumUtil;
import com.github.houbb.heaven.util.lang.StringUtil;
import com.github.houbb.sensitive.word.api.ISensitiveCheck;
import com.github.houbb.sensitive.word.api.IWordContext;
import com.github.houbb.sensitive.word.constant.enums.ValidModeEnum;
import com.github.houbb.sensitive.word.support.format.CharFormatChain;
import com.github.houbb.sensitive.word.support.format.IgnoreNumStyleCharFormat;
import java.util.List;
/**
* 敏感词监测实现
*
@@ -55,12 +60,13 @@ public class SensitiveNumCheck implements ISensitiveCheck {
/**
* 这里指定一个阈值条件
* TODO: 这里有一个问题,会把一些 url 中的数字替换掉。
* @param lengthCount 长度
* @return 是否满足条件
* @since 0.0.5
*/
private boolean isCondition(final int lengthCount) {
return lengthCount >= 6;
return lengthCount >= 8;
}
}