mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
0e4fecbb13
commit
b073014136
1 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,9 @@ export function imageSrcToImportId(imageSrc: string, filePath?: string): string
|
|||
return;
|
||||
}
|
||||
// We only care about images
|
||||
const ext = imageSrc.split('.').at(-1)?.toLowerCase() as (typeof VALID_INPUT_FORMATS)[number] | undefined;
|
||||
const ext = imageSrc.split('.').at(-1)?.toLowerCase() as
|
||||
| (typeof VALID_INPUT_FORMATS)[number]
|
||||
| undefined;
|
||||
if (!ext || !VALID_INPUT_FORMATS.includes(ext)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue