From 54ee2e39ccdebf48030efe054e608cc110348283 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Wed, 18 Jan 2023 09:46:14 -0600 Subject: [PATCH] Update packages/astro/src/core/errors/overlay.ts Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> --- packages/astro/src/core/errors/overlay.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/core/errors/overlay.ts b/packages/astro/src/core/errors/overlay.ts index e08a7e1b2d19..8eb297ea008b 100644 --- a/packages/astro/src/core/errors/overlay.ts +++ b/packages/astro/src/core/errors/overlay.ts @@ -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 `${v.slice(0, -1)}.` - return `${v}` + if (v.endsWith('.')) return `${v.slice(0, -1)}.` + return `${v}` }).join(' '); }