ship regexp fix for user email

This commit is contained in:
Asim Aslam
2021-11-05 12:01:27 +00:00
parent 76f27b773d
commit 47d5904eb4

View File

@@ -23,7 +23,7 @@ const (
var ( var (
alphanum = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" alphanum = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
emailFormat = regexp.MustCompile("^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$") emailFormat = regexp.MustCompile("^[\\w-\\.\\+]+@([\\w-]+\\.)+[\\w-]{2,4}$")
) )
func random(i int) string { func random(i int) string {