新增 upload 图片类型的 `.svg` 扩展名

pull/1257/head
贤心 2023-05-19 17:42:34 +08:00
parent f56dba4d89
commit c6bf264fd5
1 changed files with 1 additions and 1 deletions

View File

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