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

Function IsMatchVariable

common/regexp.go:74–76  ·  view source on GitHub ↗

IsMatchVariable 判断字符串是否匹配环境变量标准格式${abc}

(s string)

Source from the content-addressed store, hash-verified

72
73// IsMatchVariable 判断字符串是否匹配环境变量标准格式${abc}
74func IsMatchVariable(s string) bool {
75 return variableRegexp.MatchString(s)
76}
77
78// IsMatchFilterAppKey 判断字符串是否匹配策略筛选条件key(应用)标准格式appkey{abc}
79func IsMatchFilterAppKey(s string) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected