Skip to content

Commit 9fc231e

Browse files
committed
test digits in hostnames
Both, RFC1034 and RFC1123, allow hostnames with digits in between and at the end. Signed-off-by: Stephan Wurm <[email protected]>
1 parent e9b2015 commit 9fc231e

File tree

6 files changed

+60
-0
lines changed

6 files changed

+60
-0
lines changed

tests/draft-next/optional/format/hostname.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,20 @@
106106
"data": "host-name",
107107
"valid": true
108108
},
109+
{
110+
"description": "single label with digits",
111+
"data": "h0stn4me",
112+
"valid": true
113+
},
109114
{
110115
"description": "single label starting with digit",
111116
"data": "1host",
112117
"valid": true
118+
},
119+
{
120+
"description": "single label ending with digit",
121+
"data": "hostnam3",
122+
"valid": true
113123
}
114124
]
115125
}

tests/draft2019-09/optional/format/hostname.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,20 @@
106106
"data": "host-name",
107107
"valid": true
108108
},
109+
{
110+
"description": "single label with digits",
111+
"data": "h0stn4me",
112+
"valid": true
113+
},
109114
{
110115
"description": "single label starting with digit",
111116
"data": "1host",
112117
"valid": true
118+
},
119+
{
120+
"description": "single label ending with digit",
121+
"data": "hostnam3",
122+
"valid": true
113123
}
114124
]
115125
}

tests/draft2020-12/optional/format/hostname.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,20 @@
106106
"data": "host-name",
107107
"valid": true
108108
},
109+
{
110+
"description": "single label with digits",
111+
"data": "h0stn4me",
112+
"valid": true
113+
},
109114
{
110115
"description": "single label starting with digit",
111116
"data": "1host",
112117
"valid": true
118+
},
119+
{
120+
"description": "single label ending with digit",
121+
"data": "hostnam3",
122+
"valid": true
113123
}
114124
]
115125
}

tests/draft4/optional/format/hostname.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,20 @@
103103
"data": "host-name",
104104
"valid": true
105105
},
106+
{
107+
"description": "single label with digits",
108+
"data": "h0stn4me",
109+
"valid": true
110+
},
106111
{
107112
"description": "single label starting with digit",
108113
"data": "1host",
109114
"valid": true
115+
},
116+
{
117+
"description": "single label ending with digit",
118+
"data": "hostnam3",
119+
"valid": true
110120
}
111121
]
112122
}

tests/draft6/optional/format/hostname.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,20 @@
103103
"data": "host-name",
104104
"valid": true
105105
},
106+
{
107+
"description": "single label with digits",
108+
"data": "h0stn4me",
109+
"valid": true
110+
},
106111
{
107112
"description": "single label starting with digit",
108113
"data": "1host",
109114
"valid": true
115+
},
116+
{
117+
"description": "single label ending with digit",
118+
"data": "hostnam3",
119+
"valid": true
110120
}
111121
]
112122
}

tests/draft7/optional/format/hostname.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,20 @@
103103
"data": "host-name",
104104
"valid": true
105105
},
106+
{
107+
"description": "single label with digits",
108+
"data": "h0stn4me",
109+
"valid": true
110+
},
106111
{
107112
"description": "single label starting with digit",
108113
"data": "1host",
109114
"valid": true
115+
},
116+
{
117+
"description": "single label ending with digit",
118+
"data": "hostnam3",
119+
"valid": true
110120
}
111121
]
112122
}

0 commit comments

Comments
 (0)