feat: 添加用户设置功能,支持修改昵称和邮箱,重构相关路由和组件
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
export const emailPattern = /^(?=.{1,254}$)(?=.{1,64}@)[\w!#$%&'*+/=?^`{|}~-]+(?:\.[\w!#$%&'*+/=?^`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;
|
||||
export const numberPattern = /^\d+(?:\.\d+)?$/;
|
||||
// 仅支持字母、数字、下划线,长度 3-20 个字符
|
||||
export const usernamePattern = /^\w{3,20}$/;
|
||||
|
||||
Reference in New Issue
Block a user