[new feature] Icon: name can be URL (#2149)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Is image source
|
||||
*/
|
||||
export default function src(url) {
|
||||
return /^(https?:)?\/\/|data:image/.test(url);
|
||||
}
|
||||
Reference in New Issue
Block a user