|
@@ -210,7 +210,7 @@ public class OwnCompanyManageController extends BaseController
|
|
|
throw new Exception("企业名称不能为空");
|
|
|
}
|
|
|
//企业名称正则校验
|
|
|
- String checkScyName = "^([\\u4e00-\\u9fa5]+|[a-zA-Z0-9]+)$";
|
|
|
+ String checkScyName = "^[\\u4E00-\\u9FFF0-9A-Z《》()()]+$";
|
|
|
Pattern regeScyName = Pattern.compile(checkScyName);
|
|
|
Matcher matcherScyName = regeScyName.matcher(scyName);
|
|
|
boolean isMatScyName = matcherScyName.matches();
|
|
@@ -239,7 +239,7 @@ public class OwnCompanyManageController extends BaseController
|
|
|
throw new Exception("联系人长度不能超过30字;请检查是否正确");
|
|
|
}
|
|
|
//联系人正则校验
|
|
|
- String checkNickName = "^([\\u4e00-\\u9fa5]+|[a-zA-Z0-9]+)$";
|
|
|
+ String checkNickName = "^[A-Za-z\\u4e00-\\u9fa5]+$";
|
|
|
Pattern regeNickName = Pattern.compile(checkNickName);
|
|
|
Matcher matcherNickName = regeNickName.matcher(nickName);
|
|
|
boolean isMatNickName = matcherNickName.matches();
|