MCPcopy
hub / github.com/cli/cli / normalizeHostname

Function normalizeHostname

internal/ghrepo/repo.go:74–76  ·  view source on GitHub ↗
(h string)

Source from the content-addressed store, hash-verified

72}
73
74func normalizeHostname(h string) string {
75 return strings.ToLower(strings.TrimPrefix(h, "www."))
76}
77
78// IsSame compares two GitHub repositories
79func IsSame(a, b Interface) bool {

Callers 2

NewWithHostFunction · 0.85
IsSameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected