Skip to content

Commit d4f14d7

Browse files
committed
邮箱格式正则修正
1 parent 74e6698 commit d4f14d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conf/enumerate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const LoginSessionName = "LoginSessionName"
1212

1313
const CaptchaSessionName = "__captcha__"
1414

15-
const RegexpEmail = `^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$`
15+
const RegexpEmail = `(?i)[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,6}`
1616

1717
//允许用户名中出现点号
1818

0 commit comments

Comments
 (0)