[ci] format

This commit is contained in:
natemoo-re 2023-01-18 18:59:33 +00:00 committed by fredkbot
parent 16dc36a870
commit 599a05bfb5
2 changed files with 9 additions and 6 deletions

View file

@ -524,11 +524,15 @@ class ErrorOverlay extends HTMLElement {
if (html) {
// Automatically detect links
text = text.split(' ').map(v => {
if (!v.startsWith('https://')) return v;
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(' ');
text = text
.split(' ')
.map((v) => {
if (!v.startsWith('https://')) return v;
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(' ');
}
if (el) {

View file

@ -1,4 +1,3 @@
import { fileURLToPath } from 'url';
import { ESBuildTransformResult, transformWithEsbuild } from 'vite';
import { AstroConfig } from '../@types/astro';
import { cachedCompilation, CompileProps, CompileResult } from '../core/compile/index.js';