Skip to content

Commit 261b52d

Browse files
committed
do not allow starting digits in hostnames for older drafts
Drafts 4, 6, and 7 are referencing RFC1034, which, in contrast to RFC1123, does not allow a starting digit in hostnames. Signed-off-by: Stephan Wurm <[email protected]>
1 parent 9fc231e commit 261b52d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/draft4/optional/format/hostname.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
{
112112
"description": "single label starting with digit",
113113
"data": "1host",
114-
"valid": true
114+
"valid": false
115115
},
116116
{
117117
"description": "single label ending with digit",

tests/draft6/optional/format/hostname.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
{
112112
"description": "single label starting with digit",
113113
"data": "1host",
114-
"valid": true
114+
"valid": false
115115
},
116116
{
117117
"description": "single label ending with digit",

tests/draft7/optional/format/hostname.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
{
112112
"description": "single label starting with digit",
113113
"data": "1host",
114-
"valid": true
114+
"valid": false
115115
},
116116
{
117117
"description": "single label ending with digit",

0 commit comments

Comments
 (0)