Skip to content

Commit

Permalink
style: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
winfredLIN authored and ColdWaterLW committed Dec 15, 2023
1 parent 3052b89 commit 86cbca1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqle/utils/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) + `.*$`)
}

0 comments on commit 86cbca1

Please sign in to comment.