tangled
alpha
login
or
join now
veryroundbird.house
/
core
forked from
tangled.org/core
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
remove unused func
oppi.li
11 months ago
b120a6e4
095dbc69
-6
1 changed file
expand all
collapse all
unified
split
appview
email
email.go
-6
appview/email/email.go
···
61
61
62
62
return true
63
63
}
64
64
-
65
65
-
func IsValidEmailSimple(email string) bool {
66
66
-
pattern := `^[a-zA-Z0-9.!#$%&'*+/=?^_\x60{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$`
67
67
-
regex := regexp.MustCompile(pattern)
68
68
-
return regex.MatchString(email) && len(email) <= 254 && len(email) >= 3
69
69
-
}