mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[new feature] Icon: name can be URL (#2149)
This commit is contained in:
6
packages/utils/validate/src.js
Normal file
6
packages/utils/validate/src.js
Normal file
@@ -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