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

Function normalizeVerboseLog

api/http_client_test.go:453–460  ·  view source on GitHub ↗
(t string)

Source from the content-addressed store, hash-verified

451var timezoneRE = regexp.MustCompile(`(?m)^> Time-Zone: .+`)
452
453func normalizeVerboseLog(t string) string {
454 t = requestAtRE.ReplaceAllString(t, "* Request at <time>")
455 t = hostWithPortRE.ReplaceAllString(t, "<host>:<port>")
456 t = dateRE.ReplaceAllString(t, "< Date: <time>")
457 t = durationRE.ReplaceAllString(t, "* Request took <duration>")
458 t = timezoneRE.ReplaceAllString(t, "> Time-Zone: <timezone>")
459 return t
460}

Callers 1

TestNewHTTPClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected