Signed-off-by: chy <chy@163.com>
This commit is contained in:
4
src/hooks/login/loginApi.ts
Normal file
4
src/hooks/login/loginApi.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export function isValidPhoneNumber(phoneNumber: string): boolean {
|
||||
const regex = /^1[3-9]\d{9}$/;
|
||||
return regex.test(phoneNumber);
|
||||
}
|
||||
Reference in New Issue
Block a user