mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[type] raf (#2699)
This commit is contained in:
6
packages/utils/validate/src.ts
Normal file
6
packages/utils/validate/src.ts
Normal file
@@ -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