MCPcopy Index your code
hub / github.com/rilldata/rill / redactURLCredentials

Function redactURLCredentials

runtime/pkg/gitutil/gitcmdwrapper.go:239–241  ·  view source on GitHub ↗

redactURLCredentials masks credentials embedded in URLs in s.

(s string)

Source from the content-addressed store, hash-verified

237
238// redactURLCredentials masks credentials embedded in URLs in s.
239func redactURLCredentials(s string) string {
240 return urlCredentialsRegexp.ReplaceAllString(s, "$1<redacted>@")
241}

Callers 1

RunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected