添加BMP的支持 (#10110)

This commit is contained in:
刘红 2018-04-17 14:44:43 +08:00 committed by 偏右
parent f3f3c63c30
commit ee4f788ae0

View File

@ -25,7 +25,7 @@ const extname = (url: string) => {
const isImageUrl = (url: string): boolean => {
const extension = extname(url);
if (/^data:image\//.test(url) || /(webp|svg|png|gif|jpg|jpeg)$/.test(extension)) {
if (/^data:image\//.test(url) || /(webp|svg|png|gif|jpg|jpeg|bmp)$/.test(extension)) {
return true;
} else if (/^data:/.test(url)) { // other file types of base64
return false;