feat(Uploader): support avif image format (#11655)

This commit is contained in:
chenxueli 2023-03-09 09:31:56 +08:00 committed by chenjiahan
parent 899714b4d8
commit 4428e4770a

View File

@ -63,7 +63,7 @@ export function filterFiles(
return { valid, invalid };
}
const IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
const IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg|avif)/i;
export const isImageUrl = (url: string): boolean => IMAGE_REGEXP.test(url);