Compare commits

...

3 Commits

Author SHA1 Message Date
chenxueli
4428e4770a feat(Uploader): support avif image format (#11655) 2023-03-09 09:35:09 +08:00
chenjiahan
899714b4d8 release: @vant/area-data 1.4.1 2023-03-09 09:34:51 +08:00
郭军宏
df943630a7
feat(Area): update area data (#11645) 2023-03-09 09:33:13 +08:00
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@vant/area-data",
"version": "1.4.0",
"version": "1.4.1",
"description": "Vant 省市区数据",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",

View File

@ -1625,7 +1625,6 @@ export const areaList: {
360724: '上犹县',
360725: '崇义县',
360726: '安远县',
360727: '龙南县',
360728: '定南县',
360729: '全南县',
360730: '宁都县',
@ -1635,6 +1634,7 @@ export const areaList: {
360734: '寻乌县',
360735: '石城县',
360781: '瑞金市',
360783: '龙南市',
360802: '吉州区',
360803: '青原区',
360821: '吉安县',

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);