fix email regex rule

This commit is contained in:
shiw
2023-08-11 17:58:22 +08:00
parent 7fcf8fb73c
commit 927f44c6a5
4 changed files with 16 additions and 2 deletions

View 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~")
}