From 1611f1e72c15a2946d12035bf44c103c0a97f9d3 Mon Sep 17 00:00:00 2001 From: amiraliucsc Date: Sun, 19 Apr 2020 06:17:28 +0000 Subject: [PATCH] Add test regarding multiple dots in hostname Signed-off-by: amiraliucsc --- validator_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/validator_test.go b/validator_test.go index 2e4215f..32d2062 100644 --- a/validator_test.go +++ b/validator_test.go @@ -7896,6 +7896,9 @@ func TestHostnameRFC952Validation(t *testing.T) { {"2001:cdba:0000:0000:0000:0000:3257:9652", false}, {"2001:cdba:0:0:0:0:3257:9652", false}, {"2001:cdba::3257:9652", false}, + {"example..........com", false}, + {"1234", false}, + {"abc1234", true}, } validate := New()