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

Function IsMatchDomainPort

common/regexp.go:84–86  ·  view source on GitHub ↗

IsMatchDomainPort 判断字符串是否符合域名或者域名:port

(s string)

Source from the content-addressed store, hash-verified

82
83// IsMatchDomainPort 判断字符串是否符合域名或者域名:port
84func IsMatchDomainPort(s string) bool {
85 return domainPortRegexp.MatchString(s)
86}
87
88// IsMatchIpPort 判断字符串是否符合ip:port
89func IsMatchIpPort(s string) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected