用户登录名正则修改

This commit is contained in:
2023-11-07 16:09:37 +08:00
parent 01edcba6e2
commit 809a638aa1
2 changed files with 3 additions and 3 deletions

View File

@@ -39,9 +39,9 @@ public interface PatternRegex {
String HOMEPAGE_REGEX = "^[\\u4e00-\\u9fa5]{1,10}$";
/**
* 登录名只能输入3-16位的英文字母数字
* 登录名只能输入3-16位的英文字母数字
*/
String LOGIN_NAME_REGEX = "^[a-zA-Z_]{1}[a-zA-Z0-9_]{2,15}$";
String LOGIN_NAME_REGEX = "^[a-zA-Z0-9_]{3,16}$";
/**
* 手机号必须有11位并且为数字是正常的手机·号码开头