[ci] format
This commit is contained in:
parent
16dc36a870
commit
599a05bfb5
2 changed files with 9 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue