mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
feat: image component
This commit is contained in:
6
src-next/utils/validate/mobile.ts
Normal file
6
src-next/utils/validate/mobile.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function isMobile(value: string): boolean {
|
||||
value = value.replace(/[^-|\d]/g, '');
|
||||
return (
|
||||
/^((\+86)|(86))?(1)\d{10}$/.test(value) || /^0[0-9-]{10,13}$/.test(value)
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user