Skip to content

Commit d6b7fb3

Browse files
committed
Test IDN label separator in hostname format
Regular `hostname` should not support the extended label separators used in `idn-hostname`.
1 parent 2af3a1f commit d6b7fb3

File tree

6 files changed

+30
-0
lines changed

6 files changed

+30
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@
140140
"description": "trailing dot",
141141
"data": "example.",
142142
"valid": false
143+
},
144+
{
145+
"description": "IDN label separator",
146+
"data": "example\uff0ecom",
147+
"valid": false
143148
}
144149
]
145150
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@
140140
"description": "trailing dot",
141141
"data": "example.",
142142
"valid": false
143+
},
144+
{
145+
"description": "IDN label separator",
146+
"data": "example\uff0ecom",
147+
"valid": false
143148
}
144149
]
145150
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@
140140
"description": "trailing dot",
141141
"data": "example.",
142142
"valid": false
143+
},
144+
{
145+
"description": "IDN label separator",
146+
"data": "example\uff0ecom",
147+
"valid": false
143148
}
144149
]
145150
}

tests/draft4/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@
132132
"description": "trailing dot",
133133
"data": "example.",
134134
"valid": false
135+
},
136+
{
137+
"description": "IDN label separator",
138+
"data": "example\uff0ecom",
139+
"valid": false
135140
}
136141
]
137142
}

tests/draft6/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@
132132
"description": "trailing dot",
133133
"data": "example.",
134134
"valid": false
135+
},
136+
{
137+
"description": "IDN label separator",
138+
"data": "example\uff0ecom",
139+
"valid": false
135140
}
136141
]
137142
}

tests/draft7/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@
132132
"description": "trailing dot",
133133
"data": "example.",
134134
"valid": false
135+
},
136+
{
137+
"description": "IDN label separator",
138+
"data": "example\uff0ecom",
139+
"valid": false
135140
}
136141
]
137142
}

0 commit comments

Comments
 (0)