Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1360bfe

Browse files
authored
chore: fix false positives in CodeQL for TS (#17139)
Fixes some false positives flagged by CodeQL
1 parenteded0ed commit1360bfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎site/src/utils/apps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const createAppLinkHref = (
2929
}
3030

3131
if(appsHost&&app.subdomain&&app.subdomain_name){
32-
constbaseUrl=`${protocol}//${appsHost.replace("*",app.subdomain_name)}`;
32+
constbaseUrl=`${protocol}//${appsHost.replace(/\*/g,app.subdomain_name)}`;
3333
consturl=newURL(baseUrl);
3434
url.pathname="/";
3535

‎site/src/utils/portForward.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const portForwardURL = (
1515

1616
constsubdomain=`${port}${suffix}--${agentName}--${workspaceName}--${username}`;
1717

18-
constbaseUrl=`${location.protocol}//${host.replace("*",subdomain)}`;
18+
constbaseUrl=`${location.protocol}//${host.replace(/\*/g,subdomain)}`;
1919
consturl=newURL(baseUrl);
2020
if(pathname){
2121
url.pathname=pathname;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp