提交 5bf00c96 authored 作者: 钟是志's avatar 钟是志

31222 管理后台添加单位信息或编辑单位提交的信息,或者单位自行在门户注册3种情况,邮箱格式验证有误

上级 90ef0a99
...@@ -309,7 +309,8 @@ export function checkInputType(data, type) { ...@@ -309,7 +309,8 @@ export function checkInputType(data, type) {
} }
break; break;
case 'email': case 'email':
if (!/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(data)) { const reg = /^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;
if (!reg.test(data)) {
message.warning('邮箱格式错误!'); message.warning('邮箱格式错误!');
return false; return false;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论