0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
Matt Kane 2024-12-04 12:35:28 +00:00 committed by astrobot-houston
parent 0e4fecbb13
commit b073014136

View file

@ -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;
}