From 86cbca1efa6bf74d80f3b4531a0faf7370e9f8d3 Mon Sep 17 00:00:00 2001 From: winfredLIN Date: Fri, 15 Dec 2023 17:00:35 +0800 Subject: [PATCH] style: add comment --- sqle/utils/util.go | 1 + 1 file changed, 1 insertion(+) 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) + `.*$`) }