Skip to content

Commit 5f4520f

Browse files
committed
removing resolving explicitly ./ & ../ comment
1 parent 4de0348 commit 5f4520f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

server/utils/changelog/markdown.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,6 @@ function resolveUrl(url: string, repoInfo: MarkdownRepoInfo) {
259259

260260
// Check if this is a markdown file link
261261
const isMarkdownFile = /\.md$/i.test(url.split('?')[0]?.split('#')[0] ?? '')
262-
263-
// if (url.startsWith('./') || url.startsWith('../')) {
264-
// // url constructor handles relative paths
265-
// return checkResolvedUrl(new URL(url, `${baseUrl}/${repoInfo.path ?? ''}`).href, baseUrl)
266-
// }
267-
268262
const baseUrl = isMarkdownFile ? repoInfo.blobBaseUrl : repoInfo.rawBaseUrl
269263

270264
if (url.startsWith('/')) {

0 commit comments

Comments
 (0)