We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 548e84c commit 9336511Copy full SHA for 9336511
1 file changed
src/config/index.ts
@@ -157,7 +157,7 @@ export const getProxyUrl = (): string | undefined => {
157
* Never log a raw proxy URL — always pass it through this helper first.
158
*/
159
export const redactProxyUrl = (url: string): string => {
160
- return url.replace(/(https?:\/\/)[^@]+@/, '$1<redacted>@');
+ return url.replace(/^(https?:\/\/)[^@]+@/, '$1<redacted>@');
161
};
162
163
// Get upstream proxy configuration
0 commit comments