@ -281,23 +281,25 @@ func TestEmailAddressValidate(t *testing.T) {
` first~last@iana.org ` : nil ,
` first~last@iana.org ` : nil ,
` first;last@iana.org ` : user_model . ErrEmailCharIsNotSupported { ` first;last@iana.org ` } ,
` first;last@iana.org ` : user_model . ErrEmailCharIsNotSupported { ` first;last@iana.org ` } ,
".233@qq.com" : user_model . ErrEmailInvalid { ".233@qq.com" } ,
".233@qq.com" : user_model . ErrEmailInvalid { ".233@qq.com" } ,
"!233@qq.com" : user_model . ErrEmailInvalid { "!233@qq.com" } ,
"!233@qq.com" : nil ,
"#233@qq.com" : user_model . ErrEmailInvalid { "#233@qq.com" } ,
"#233@qq.com" : nil ,
"$233@qq.com" : user_model . ErrEmailInvalid { "$233@qq.com" } ,
"$233@qq.com" : nil ,
"%233@qq.com" : user_model . ErrEmailInvalid { "%233@qq.com" } ,
"%233@qq.com" : nil ,
"&233@qq.com" : user_model . ErrEmailInvalid { "&233@qq.com" } ,
"&233@qq.com" : nil ,
"'233@qq.com" : user_model . ErrEmailInvalid { "'233@qq.com" } ,
"'233@qq.com" : nil ,
"*233@qq.com" : user_model . ErrEmailInvalid { "*233@qq.com" } ,
"*233@qq.com" : nil ,
"+233@qq.com" : user_model . ErrEmailInvalid { "+233@qq.com" } ,
"+233@qq.com" : nil ,
"/233@qq.com" : user_model . ErrEmailInvalid { "/233@qq.com" } ,
"-233@qq.com" : user_model . ErrEmailInvalid { "-233@qq.com" } ,
"=233@qq.com" : user_model . ErrEmailInvalid { "=233@qq.com" } ,
"/233@qq.com" : nil ,
"?233@qq.com" : user_model . ErrEmailInvalid { "?233@qq.com" } ,
"=233@qq.com" : nil ,
"^233@qq.com" : user_model . ErrEmailInvalid { "^233@qq.com" } ,
"?233@qq.com" : nil ,
"`233@qq.com" : user_model . ErrEmailInvalid { "`233@qq.com" } ,
"^233@qq.com" : nil ,
"{233@qq.com" : user_model . ErrEmailInvalid { "{233@qq.com" } ,
"_233@qq.com" : nil ,
"|233@qq.com" : user_model . ErrEmailInvalid { "|233@qq.com" } ,
"`233@qq.com" : nil ,
"}233@qq.com" : user_model . ErrEmailInvalid { "}233@qq.com" } ,
"{233@qq.com" : nil ,
"~233@qq.com" : user_model . ErrEmailInvalid { "~233@qq.com" } ,
"|233@qq.com" : nil ,
"}233@qq.com" : nil ,
"~233@qq.com" : nil ,
";233@qq.com" : user_model . ErrEmailCharIsNotSupported { ";233@qq.com" } ,
";233@qq.com" : user_model . ErrEmailCharIsNotSupported { ";233@qq.com" } ,
"Foo <foo@bar.com>" : user_model . ErrEmailCharIsNotSupported { "Foo <foo@bar.com>" } ,
"Foo <foo@bar.com>" : user_model . ErrEmailCharIsNotSupported { "Foo <foo@bar.com>" } ,
string ( [ ] byte { 0xE2 , 0x84 , 0xAA } ) : user_model . ErrEmailCharIsNotSupported { string ( [ ] byte { 0xE2 , 0x84 , 0xAA } ) } ,
string ( [ ] byte { 0xE2 , 0x84 , 0xAA } ) : user_model . ErrEmailCharIsNotSupported { string ( [ ] byte { 0xE2 , 0x84 , 0xAA } ) } ,