diff --git a/packages/vant/src/uploader/utils.ts b/packages/vant/src/uploader/utils.ts index 0db08b5fe..8057b9b16 100644 --- a/packages/vant/src/uploader/utils.ts +++ b/packages/vant/src/uploader/utils.ts @@ -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);