Skip to content

Commit a1de34a

Browse files
test(format): allow consecutive hyphens in hostname (RFC1123) (#874)
Signed-off-by: Vaibhav mittal <vaibhavmittal929@gmail.com>
1 parent aac8a1b commit a1de34a

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

tests/draft4/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
"data": "xn--4gbwdl.xn--wgbh1c",
4444
"valid": true
4545
},
46+
{
47+
"description": "hostname with consecutive hyphens (RFC1123)",
48+
"data": "ab--cd.example",
49+
"valid": true
50+
},
4651
{
4752
"description": "a host name starting with an illegal character",
4853
"data": "-a-host-name-that-starts-with--",

tests/draft6/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
"data": "xn--4gbwdl.xn--wgbh1c",
4444
"valid": true
4545
},
46+
{
47+
"description": "hostname with consecutive hyphens (RFC1123)",
48+
"data": "ab--cd.example",
49+
"valid": true
50+
},
4651
{
4752
"description": "a host name starting with an illegal character",
4853
"data": "-a-host-name-that-starts-with--",

0 commit comments

Comments
 (0)