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

Function CheckPathContainsIPPort

common/regexp.go:133–135  ·  view source on GitHub ↗

CheckPathContainsIPPort 检查路径中是否包含xxx://ip:port

(path string)

Source from the content-addressed store, hash-verified

131
132// CheckPathContainsIPPort 检查路径中是否包含xxx://ip:port
133func CheckPathContainsIPPort(path string) bool {
134 return checkIPPortRegexp.MatchString(path)
135}
136
137// ModelNameValid check model name is valid
138func ModelNameValid(param string) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected