修改邮箱验证正则

Uat_Study^2
hang 2024-05-23 09:00:15 +08:00
parent 2cd9716e68
commit 6fb0562a0b
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ namespace IRaCIS.Application.Services
{ {
//检查手机或者邮箱是否有效 //检查手机或者邮箱是否有效
if (!Regex.IsMatch(email, @"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$")) if (!Regex.IsMatch(email, @"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"))
{ {
//---请输入一个正确的邮箱。 //---请输入一个正确的邮箱。