Skip to content

Commit

Permalink
リファクタリング new URLを使う
Browse files Browse the repository at this point in the history
  • Loading branch information
cm-dyoshikawa committed Sep 17, 2024
1 parent 65e60e2 commit 7461dac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/zenn-markdown-html/src/utils/url-matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ export function extractDocswellEmbedUrl(url: string): string | null {
if (!slideId) {
return null;
}
return `https://www.docswell.com/slide/${slideId}/embed`;
return new URL(
`/slide/${slideId}/embed`,
'https://www.docswell.com'
).toString();
}

/**
Expand Down

0 comments on commit 7461dac

Please sign in to comment.