Skip to content

Commit 6c74592

Browse files
authored
Update link.js
1 parent ec7f689 commit 6c74592

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/link.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const html = `
116116
117117
}
118118
119-
if (link && link.startsWith('https:/github.com')) {
119+
if (link && link.includes('https:/github.com')) {
120120
121121
link = link.replace('https:/github.com', 'https://github.com');
122122
@@ -154,4 +154,3 @@ const html = `
154154
response.status(200).send(html);
155155

156156
}
157-

0 commit comments

Comments
 (0)