[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

@@ -86,4 +86,6 @@ test('is-src', () => {
expect(isSrc('img.cdn.com')).toBeFalsy();
expect(isSrc('name')).toBeFalsy();
expect(isSrc('')).toBeFalsy();
expect(isSrc('blob:http://img.cdn.com')).toBeTruthy();
expect(isSrc('blob:https://img.cdn.com')).toBeTruthy();
});