mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[bugfix] Utils: <is-src> data URLs should be prefixed with the data:image (#3308)
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
* Is image source
|
||||
*/
|
||||
export function isSrc(url: string): boolean {
|
||||
return /^((blob:)?https?:)?\/\/|data:image/.test(url);
|
||||
return /^(((blob:)?https?:)?\/\/|data:image)/.test(url);
|
||||
}
|
||||
|
Reference in New Issue
Block a user