* Sanitizes the given console message. This method can be overridden by * derived classes. e.g. to sanitize access tokens from Git commands.
(value: string)
| 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; |
no outgoing calls
no test coverage detected