diff --git a/sqle/utils/util.go b/sqle/utils/util.go index 009fa2836a..d4ac810993 100644 --- a/sqle/utils/util.go +++ b/sqle/utils/util.go @@ -310,6 +310,7 @@ func IsPrefixSubStrArray(arr []string, prefix []string) bool { return true } +// 全模糊匹配字符串,并且对大小写不敏感 func FullFuzzySearchRegexp(str string) *regexp.Regexp { return regexp.MustCompile(`^.*(?i)` + regexp.QuoteMeta(str) + `.*$`) }