[bugfix] Icon: should support render local image

This commit is contained in:
陈嘉涵
2019-06-03 20:46:16 +08:00
parent 616db0114e
commit 39339fdda7
5 changed files with 19 additions and 22 deletions
-6
View File
@@ -1,6 +0,0 @@
/**
* Is image source
*/
export function isSrc(url: string): boolean {
return /^(((blob:)?https?:)?\/\/|data:image)/.test(url);
}