[bugfix] Utils: is-src add blob image source (#3300)

This commit is contained in:
xg4
2019-05-15 20:54:39 +08:00
committed by 陈嘉涵
parent f17891bdb3
commit 084eed3c63
2 changed files with 3 additions and 1 deletions

View File

@@ -2,5 +2,5 @@
* Is image source
*/
export function isSrc(url: string): boolean {
return /^(https?:)?\/\/|data:image/.test(url);
return /^((blob:)?https?:)?\/\/|data:image/.test(url);
}