1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-13 17:22:27 +08:00

fix: fix issue #335

This commit is contained in:
dudaodong
2025-10-30 17:09:48 +08:00
parent 3c6c3a14cf
commit f407e51b24
4 changed files with 70 additions and 68 deletions

View File

@@ -477,7 +477,8 @@ func TestIsDns(t *testing.T) {
{"abc.com", true},
{"123.cn", true},
{"a.b.com", true},
{"a.b.c", false},
{"a.b.c", true},
{"www.xn--6qq986b3xl.xn--fiqs8s.com", true},
{"a@b.com", false},
{"http://abc.com", false},
}