MCPcopy Index your code
hub / github.com/cli/cli / normalizeHost

Function normalizeHost

internal/skills/source/source.go:70–73  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

68}
69
70func normalizeHost(host string) string {
71 host = strings.TrimSpace(strings.ToLower(host))
72 return strings.TrimPrefix(host, "www.")
73}

Callers 1

ValidateSupportedHostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected