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