Skip to content

Commit

Permalink
添加BMP的支持 (#10110)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhong1happy authored and afc163 committed Apr 17, 2018
1 parent f3f3c63 commit ee4f788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/upload/UploadList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ee4f788

Please sign in to comment.