Skip to content

Commit 9265a4f

Browse files
committed
do not test hostname with leading digit for older drafts
Drafts 4, 6, and 7 are based on RFC1034, not allowing a leading digit in hostnames. This was extended only later by newer drafts referencing RFC1123. Removed the checks for leading digit in hostnames from the older drafts, as strict checking with the old format could break existing setups. Signed-off-by: Stephan Wurm <[email protected]>
1 parent 261b52d commit 9265a4f

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

tests/draft4/optional/format/hostname.json

-5
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,6 @@
108108
"data": "h0stn4me",
109109
"valid": true
110110
},
111-
{
112-
"description": "single label starting with digit",
113-
"data": "1host",
114-
"valid": false
115-
},
116111
{
117112
"description": "single label ending with digit",
118113
"data": "hostnam3",

tests/draft6/optional/format/hostname.json

-5
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,6 @@
108108
"data": "h0stn4me",
109109
"valid": true
110110
},
111-
{
112-
"description": "single label starting with digit",
113-
"data": "1host",
114-
"valid": false
115-
},
116111
{
117112
"description": "single label ending with digit",
118113
"data": "hostnam3",

tests/draft7/optional/format/hostname.json

-5
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,6 @@
108108
"data": "h0stn4me",
109109
"valid": true
110110
},
111-
{
112-
"description": "single label starting with digit",
113-
"data": "1host",
114-
"valid": false
115-
},
116111
{
117112
"description": "single label ending with digit",
118113
"data": "hostnam3",

0 commit comments

Comments
 (0)