chore(upload): 新增图片 webp 默认格式支持

pull/1740/head
贤心 2024-02-04 15:21:17 +08:00
parent e2a04fb838
commit 209544f351
1 changed files with 1 additions and 1 deletions

View File

@ -510,7 +510,7 @@ layui.define(['lay', 'layer'], function(exports){
break;
default: // 图片文件
layui.each(value, function(i, item){
if(!RegExp('.\\.('+ (exts || 'jpg|png|gif|bmp|jpeg|svg') +')$', 'i').test(escape(item))){
if(!RegExp('.\\.('+ (exts || 'jpg|png|gif|bmp|jpeg|svg|webp') +')$', 'i').test(escape(item))){
return check = true;
}
});