MCPcopy Create free account
hub / github.com/angular/dev-infra / sanitizeConsoleOutput

Method sanitizeConsoleOutput

ng-dev/utils/git/git-client.ts:226–228  ·  view source on GitHub ↗

* Sanitizes the given console message. This method can be overridden by * derived classes. e.g. to sanitize access tokens from Git commands.

(value: string)

Source from the content-addressed store, hash-verified

224 * derived classes. e.g. to sanitize access tokens from Git commands.
225 */
226 sanitizeConsoleOutput(value: string) {
227 return value.replace(/(https?:\/\/)([^@:]+)(:[^@]+)?@/g, '$1<TOKEN>@');
228 }
229
230 /** The singleton instance of the unauthenticated `GitClient`. */
231 private static _unauthenticatedInstance: Promise<GitClient> | null = null;

Callers 3

runGracefulMethod · 0.95
constructorMethod · 0.45
git-client.spec.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected