组织基本设置-正则和新建的页面不一致

This commit is contained in:
caishi 2021-04-26 16:31:26 +08:00
parent 2bd6f9cb1e
commit 0cdb491433
1 changed files with 2 additions and 2 deletions

View File

@ -99,8 +99,8 @@ export default Form.create()(
if(!value){
callback();
}
if(value && !value.match(/^[a-zA-Z][a-zA-Z\d]{3,14}$/)){
callback("只能使用英文字母和数字以字母开头长度为4到15个字符");
if(value && !value.match(/^[a-zA-Z][a-zA-Z0-9_-]{3,19}$/)){
callback("只能使用以字母开头包含字母、数字、下划线、横杠等长度4到20个字符");
}
callback();
}