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

Function IsMatchIpPort

common/regexp.go:89–91  ·  view source on GitHub ↗

IsMatchIpPort 判断字符串是否符合ip:port

(s string)

Source from the content-addressed store, hash-verified

87
88// IsMatchIpPort 判断字符串是否符合ip:port
89func IsMatchIpPort(s string) bool {
90 return ipPortRegexp.MatchString(s)
91}
92
93// IsMatchSchemeIpPort 判断字符串是否符合scheme://ip:port
94func IsMatchSchemeIpPort(s string) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected