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

Function IsMatchSchemeIpPort

common/regexp.go:94–96  ·  view source on GitHub ↗

IsMatchSchemeIpPort 判断字符串是否符合scheme://ip:port

(s string)

Source from the content-addressed store, hash-verified

92
93// IsMatchSchemeIpPort 判断字符串是否符合scheme://ip:port
94func IsMatchSchemeIpPort(s string) bool {
95 return schemeIpPortRegexp.MatchString(s)
96}
97
98// IsMatchCIDRIpv4 判断字符串是否符合ipv4或者ipv4的cidr
99func IsMatchCIDRIpv4(s string) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected