From 685b4c1504f10c71b8a55cb767d6f5c0676fe190 Mon Sep 17 00:00:00 2001 From: Vishal Shanbhag Date: Fri, 16 May 2025 12:57:59 +0530 Subject: [PATCH] Update to fix, Incomplete string escaping or encoding in Util.ts Incomplete string escaping or encoding --- lib/Util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Util.ts b/lib/Util.ts index fa3c2d7..ba80ebb 100644 --- a/lib/Util.ts +++ b/lib/Util.ts @@ -113,7 +113,7 @@ export function buildProxyBypassRegexFromEnv(bypass : string) : RegExp { } catch(err) { if (err instanceof SyntaxError && (bypass || "").startsWith("*")) { - let wildcardEscaped = bypass.replace('*', '(.*)'); + let wildcardEscaped = bypass.replace(/\*/g, '(.*)'); return new RegExp(wildcardEscaped, 'i'); } throw err;