Skip to content

Commit

Permalink
Update packages/astro/src/core/errors/overlay.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Erika <[email protected]>
  • Loading branch information
natemoo-re and Princesseuh authored Jan 18, 2023
1 parent 85b9f98 commit 54ee2e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/core/errors/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ class ErrorOverlay extends HTMLElement {
// Automatically detect links
text = text.split(' ').map(v => {
if (!v.startsWith('https://')) return v;
if (v.endsWith('.')) return `<a href="${v.slice(0, -1)}">${v.slice(0, -1)}</a>.`
return `<a href="${v}">${v}</a>`
if (v.endsWith('.')) return `<a target="_blank" href="${v.slice(0, -1)}">${v.slice(0, -1)}</a>.`
return `<a target="_blank" href="${v}">${v}</a>`
}).join(' ');
}

Expand Down

0 comments on commit 54ee2e3

Please sign in to comment.