mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 06:56:10 +08:00
fix email regex rule
This commit is contained in:
11
server/utility/validate/validate_test.go
Normal file
11
server/utility/validate/validate_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package validate
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestIsEmail(t *testing.T) {
|
||||
b := IsEmail("QTT123456@163.com")
|
||||
assert.True(t, b, "ok~")
|
||||
}
|
Reference in New Issue
Block a user