fix: 用户昵称和手机号正则校验限长度

This commit is contained in:
TsMask committed 2024-04-08 15:03:53 +08:00
1 parent ac84a0ca0a
commit 4194d8cca6
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -34,7 +34,7 @@ export const regExpPasswd =
/**
* 有效手机号格式
*/
export const regExpMobile = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/;
export const regExpMobile = /^.{3,}$/; // /^1[3|4|5|6|7|8|9][0-9]\d{8}$/;
/**
* 有效邮箱格式
@@ -47,7 +47,7 @@ export const regExpEmail =
*
* 用户昵称只能包含字母、数字、中文和下划线,且不少于2位
*/
export const regExpNick = /^[\w\u4e00-\u9fa5-]{2,}$/;
export const regExpNick = /^.{2,}$/; // /^[\w\u4e00-\u9fa5-]{2,}$/;
/**
* 是否为http(s)://开头