MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / IsMatchFilterAppKey

Function IsMatchFilterAppKey

common/regexp.go:79–81  ·  view source on GitHub ↗

IsMatchFilterAppKey 判断字符串是否匹配策略筛选条件key(应用)标准格式appkey{abc}

(s string)

Source from the content-addressed store, hash-verified

77
78// IsMatchFilterAppKey 判断字符串是否匹配策略筛选条件key(应用)标准格式appkey{abc}
79func IsMatchFilterAppKey(s string) bool {
80 return filterAppKeyRegexp.MatchString(s)
81}
82
83// IsMatchDomainPort 判断字符串是否符合域名或者域名:port
84func IsMatchDomainPort(s string) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected