[type] raf (#2699)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Is image source
|
||||
*/
|
||||
export default function src(url: string): boolean {
|
||||
return /^(https?:)?\/\/|data:image/.test(url);
|
||||
}
|
||||
Reference in New Issue
Block a user