Commit ba112e2c authored by 彭俊龙's avatar 彭俊龙

新增用户名称行正则支持·

parent f944b2a5
Pipeline #92924 failed with stages
......@@ -334,7 +334,8 @@ const AddUserModal = props => {
rules={[
{ required: true },
{
pattern: /^[A-Za-z0-9_\u4e00-\u9fa5]+$/,
pattern: /^(?=.{1,15}$)[A-Za-z0-9_\u4e00-\u9fa5·]+$/,
//pattern: /^[A-Za-z0-9_\u4e00-\u9fa5]+$/,
message: '长度小于16位,支持字母、中文与数字,允许下划线',
},
]}
......
......@@ -164,7 +164,8 @@ const EditUserModal = props => {
rules={[
{ required: true },
{
pattern: /^[A-Za-z0-9_\u4e00-\u9fa5]+$/,
pattern: /^(?=.{1,15}$)[A-Za-z0-9_\u4e00-\u9fa5·]+$/,
//pattern: /^[A-Za-z0-9_\u4e00-\u9fa5]+$/,
message: '长度小于16位,支持字母、中文与数字,允许下划线',
},
]}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment