chore: fix false positives in CodeQL for TS (#17139)

Fixes some false positives flagged by CodeQL
This commit is contained in:
Jon Ayers
2025-03-27 16:09:53 -05:00
committed by GitHub
parent eded0ed4b6
commit 1360bfe60d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ export const createAppLinkHref = (
}
if (appsHost && app.subdomain && app.subdomain_name) {
const baseUrl = `${protocol}//${appsHost.replace("*", app.subdomain_name)}`;
const baseUrl = `${protocol}//${appsHost.replace(/\*/g, app.subdomain_name)}`;
const url = new URL(baseUrl);
url.pathname = "/";
+1 -1
View File
@@ -15,7 +15,7 @@ export const portForwardURL = (
const subdomain = `${port}${suffix}--${agentName}--${workspaceName}--${username}`;
const baseUrl = `${location.protocol}//${host.replace("*", subdomain)}`;
const baseUrl = `${location.protocol}//${host.replace(/\*/g, subdomain)}`;
const url = new URL(baseUrl);
if (pathname) {
url.pathname = pathname;