We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f916d39 commit 131015fCopy full SHA for 131015f
src/utils/authUtils.ts
@@ -12,7 +12,8 @@ export class LooseValidation implements ValidationStrategy {
12
return name.length >= 2;
13
}
14
nickNameValidate(nickName: string): boolean {
15
- return nickName.length >= 2 && nickName.length <= 12;
+ const regex = /^[a-zA-Z0-9\u3131-\uD79D\uAC00-\uD7A3]+$/;
16
+ return regex.test(nickName) && nickName.length >= 2 && nickName.length <= 12;
17
18
phoneValidate(phone: string): boolean {
19
return phone.length == 11;
0 commit comments