mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
添加BMP的支持 (#10110)
This commit is contained in:
parent
f3f3c63c30
commit
ee4f788ae0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user