This commit is contained in:
deepzz0
2016-10-02 18:51:35 +08:00
parent f945c43981
commit 34cc239e83
6 changed files with 26 additions and 32 deletions

View File

@@ -7,7 +7,7 @@ import (
)
func CheckEmail(e string) bool {
reg := regexp.MustCompile(`^(\w)+([\.\-]\w+)*#(\w)+((\.\w+)+)$`)
reg := regexp.MustCompile(`^(\w)+([\.\-]\w+)*@(\w)+((\.\w+)+)$`)
return reg.MatchString(e)
}