MCPcopy Create free account
hub / github.com/containers/image / splitDomain

Function splitDomain

docker/reference/reference.go:166–172  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

164}
165
166func splitDomain(name string) (string, string) {
167 match := anchoredNameRegexp.FindStringSubmatch(name)
168 if len(match) != 3 {
169 return "", name
170 }
171 return match[1], match[2]
172}
173
174// SplitHostname splits a named reference into a
175// hostname and name string. If no valid hostname is

Callers 3

DomainFunction · 0.85
PathFunction · 0.85
SplitHostnameFunction · 0.85

Calls 1

FindStringSubmatchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…