mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
add method
This commit is contained in:
parent
3185664018
commit
73fb1b6735
@ -24,6 +24,8 @@
|
||||
* 【aop 】 去除调试日志(issue#1116@Github)
|
||||
* 【core 】 增加'反转义(pr#1121@Github)
|
||||
* 【poi 】 增加SheetReader和XXXRowHandler(issue#I1WHJP@Gitee)
|
||||
* 【dfa 】 增加过滤符号(pr#1122@Github)
|
||||
* 【dfa 】 SensitiveUtil增加setCharFilter方法(pr#1123@Github)
|
||||
|
||||
### Bug修复
|
||||
* 【crypto 】 修复SM2验签后无法解密问题(issue#I1W0VP@Gitee)
|
||||
|
@ -4227,7 +4227,7 @@ public class StrUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算连个字符串的相似度百分比
|
||||
* 计算两个字符串的相似度百分比
|
||||
*
|
||||
* @param str1 字符串1
|
||||
* @param str2 字符串2
|
||||
|
@ -1,5 +1,6 @@
|
||||
package cn.hutool.dfa;
|
||||
|
||||
import cn.hutool.core.lang.Filter;
|
||||
import cn.hutool.core.thread.ThreadUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
@ -13,8 +14,7 @@ import java.util.List;
|
||||
*
|
||||
*/
|
||||
public final class SensitiveUtil {
|
||||
// private static final Log log = LogFactory.get();
|
||||
|
||||
|
||||
public static final char DEFAULT_SEPARATOR = StrUtil.C_COMMA;
|
||||
private static final WordTree sensitiveTree = new WordTree();
|
||||
|
||||
@ -77,6 +77,7 @@ public final class SensitiveUtil {
|
||||
* 当accept为false时,此字符不参与匹配
|
||||
*
|
||||
* @param charFilter 过滤函数
|
||||
* @since 5.4.4
|
||||
*/
|
||||
public static void setCharFilter(Filter<Character> charFilter) {
|
||||
if(charFilter != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user