mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
[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) {
|
if (html) {
|
||||||
// Automatically detect links
|
// Automatically detect links
|
||||||
text = text.split(' ').map(v => {
|
text = text
|
||||||
if (!v.startsWith('https://')) return v;
|
.split(' ')
|
||||||
if (v.endsWith('.')) return `<a target="_blank" href="${v.slice(0, -1)}">${v.slice(0, -1)}</a>.`
|
.map((v) => {
|
||||||
return `<a target="_blank" href="${v}">${v}</a>`
|
if (!v.startsWith('https://')) return v;
|
||||||
}).join(' ');
|
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) {
|
if (el) {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import { fileURLToPath } from 'url';
|
|
||||||
import { ESBuildTransformResult, transformWithEsbuild } from 'vite';
|
import { ESBuildTransformResult, transformWithEsbuild } from 'vite';
|
||||||
import { AstroConfig } from '../@types/astro';
|
import { AstroConfig } from '../@types/astro';
|
||||||
import { cachedCompilation, CompileProps, CompileResult } from '../core/compile/index.js';
|
import { cachedCompilation, CompileProps, CompileResult } from '../core/compile/index.js';
|
||||||
|
|
Loading…
Reference in a new issue