[new feature] Icon: name can be URL (#2149)

This commit is contained in:
neverland
2018-11-26 20:27:30 +08:00
committed by GitHub
parent d337bd2e20
commit dc11970fa0
38 changed files with 249 additions and 449 deletions

View File

@@ -0,0 +1,6 @@
/**
* Is image source
*/
export default function src(url) {
return /^(https?:)?\/\/|data:image/.test(url);
}