Add test regarding multiple dots in hostname

Signed-off-by: amiraliucsc <amirali7089@gmail.com>
pull/600/head
amiraliucsc 5 years ago
parent 18fba4ba8a
commit 1611f1e72c
  1. 3
      validator_test.go

@ -7896,6 +7896,9 @@ func TestHostnameRFC952Validation(t *testing.T) {
{"2001:cdba:0000:0000:0000:0000:3257:9652", false}, {"2001:cdba:0000:0000:0000:0000:3257:9652", false},
{"2001:cdba:0:0:0:0:3257:9652", false}, {"2001:cdba:0:0:0:0:3257:9652", false},
{"2001:cdba::3257:9652", false}, {"2001:cdba::3257:9652", false},
{"example..........com", false},
{"1234", false},
{"abc1234", true},
} }
validate := New() validate := New()

Loading…
Cancel
Save