From c2d5eae95b295f7ccf7bff232b340a913cd5e577 Mon Sep 17 00:00:00 2001 From: milkmeowo Date: Fri, 15 Mar 2019 22:48:48 +0800 Subject: [PATCH] supprot icon preview (#592) --- components/upload/UploadList.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/upload/UploadList.jsx b/components/upload/UploadList.jsx index eb309ca85..e33259fec 100644 --- a/components/upload/UploadList.jsx +++ b/components/upload/UploadList.jsx @@ -34,7 +34,7 @@ const isImageUrl = file => { } const url = file.thumbUrl || file.url; const extension = extname(url); - if (/^data:image\//.test(url) || /(webp|svg|png|gif|jpg|jpeg|bmp)$/i.test(extension)) { + if (/^data:image\//.test(url) || /(webp|svg|png|gif|jpg|jpeg|bmp|ico)$/i.test(extension)) { return true; } else if (/^data:/.test(url)) { // other file types of base64