Commit 738946bc authored by 彭俊龙's avatar 彭俊龙

新增用户,用户姓名正则验证支持·

parent ba112e2c
Pipeline #92926 passed with stages
......@@ -336,7 +336,7 @@ const AddUserModal = props => {
{
pattern: /^(?=.{1,15}$)[A-Za-z0-9_\u4e00-\u9fa5·]+$/,
//pattern: /^[A-Za-z0-9_\u4e00-\u9fa5]+$/,
message: '长度小于16位,支持字母、中文与数字,允许下划线',
message: '长度小于16位,支持字母、中文与数字,允许"·" 和"_"',
},
]}
>
......
......@@ -166,7 +166,7 @@ const EditUserModal = props => {
{
pattern: /^(?=.{1,15}$)[A-Za-z0-9_\u4e00-\u9fa5·]+$/,
//pattern: /^[A-Za-z0-9_\u4e00-\u9fa5]+$/,
message: '长度小于16位,支持字母、中文与数字,允许下划线',
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