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