Files
access-handler/utils/utils.go
Adrian Zürcher 090cf0c1cc add api handler
2025-10-24 16:09:01 +02:00

9 lines
191 B
Go

package utils
import "regexp"
func IsValidEmail(email string) bool {
re := regexp.MustCompile(`^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$`)
return re.MatchString(email)
}