mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
feat: fix email validation failed
This commit is contained in:
1 parent
6853d627f4
commit
5381450bea
2 files changed
+7
-2
No files matched your search
@@ -285,6 +285,7 @@ func TestIsEmail(t *testing.T) {
|
||||
assert := internal.NewAssert(t, "TestIsEmail")
|
||||
|
||||
assert.Equal(true, IsEmail("abc@xyz.com"))
|
||||
assert.Equal(false, IsEmail("@abc@xyz.com"))
|
||||
assert.Equal(false, IsEmail("a.b@@com"))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user