mirror of https://github.com/layui/layui
chore(upload): 新增图片 webp 默认格式支持
parent
e2a04fb838
commit
209544f351
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue