Skip to content

Commit e524505

Browse files
authored
Merge pull request #759 from sirosen/hostname-format-reject-single-dot
Reject single '.' character for hostname formats
2 parents 4ba013d + 4a3efd1 commit e524505

File tree

10 files changed

+50
-0
lines changed

10 files changed

+50
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@
125125
"description": "empty string",
126126
"data": "",
127127
"valid": false
128+
},
129+
{
130+
"description": "single dot",
131+
"data": ".",
132+
"valid": false
128133
}
129134
]
130135
}

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

+5
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@
331331
"description": "empty string",
332332
"data": "",
333333
"valid": false
334+
},
335+
{
336+
"description": "single dot",
337+
"data": ".",
338+
"valid": false
334339
}
335340
]
336341
}

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

+5
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@
125125
"description": "empty string",
126126
"data": "",
127127
"valid": false
128+
},
129+
{
130+
"description": "single dot",
131+
"data": ".",
132+
"valid": false
128133
}
129134
]
130135
}

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

+5
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@
331331
"description": "empty string",
332332
"data": "",
333333
"valid": false
334+
},
335+
{
336+
"description": "single dot",
337+
"data": ".",
338+
"valid": false
334339
}
335340
]
336341
}

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

+5
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@
125125
"description": "empty string",
126126
"data": "",
127127
"valid": false
128+
},
129+
{
130+
"description": "single dot",
131+
"data": ".",
132+
"valid": false
128133
}
129134
]
130135
}

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

+5
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@
331331
"description": "empty string",
332332
"data": "",
333333
"valid": false
334+
},
335+
{
336+
"description": "single dot",
337+
"data": ".",
338+
"valid": false
334339
}
335340
]
336341
}

tests/draft4/optional/format/hostname.json

+5
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@
117117
"description": "empty string",
118118
"data": "",
119119
"valid": false
120+
},
121+
{
122+
"description": "single dot",
123+
"data": ".",
124+
"valid": false
120125
}
121126
]
122127
}

tests/draft6/optional/format/hostname.json

+5
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@
117117
"description": "empty string",
118118
"data": "",
119119
"valid": false
120+
},
121+
{
122+
"description": "single dot",
123+
"data": ".",
124+
"valid": false
120125
}
121126
]
122127
}

tests/draft7/optional/format/hostname.json

+5
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@
117117
"description": "empty string",
118118
"data": "",
119119
"valid": false
120+
},
121+
{
122+
"description": "single dot",
123+
"data": ".",
124+
"valid": false
120125
}
121126
]
122127
}

tests/draft7/optional/format/idn-hostname.json

+5
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,11 @@
323323
"description": "empty string",
324324
"data": "",
325325
"valid": false
326+
},
327+
{
328+
"description": "single dot",
329+
"data": ".",
330+
"valid": false
326331
}
327332
]
328333
}

0 commit comments

Comments
 (0)