Skip to content

Commit

Permalink
Merge pull request #759 from sirosen/hostname-format-reject-single-dot
Browse files Browse the repository at this point in the history
Reject single '.' character for hostname formats
  • Loading branch information
Julian authored Jan 31, 2025
2 parents 4ba013d + 4a3efd1 commit e524505
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/draft-next/optional/format/hostname.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@
"description": "empty string",
"data": "",
"valid": false
},
{
"description": "single dot",
"data": ".",
"valid": false
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions tests/draft-next/optional/format/idn-hostname.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@
"description": "empty string",
"data": "",
"valid": false
},
{
"description": "single dot",
"data": ".",
"valid": false
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions tests/draft2019-09/optional/format/hostname.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@
"description": "empty string",
"data": "",
"valid": false
},
{
"description": "single dot",
"data": ".",
"valid": false
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions tests/draft2019-09/optional/format/idn-hostname.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@
"description": "empty string",
"data": "",
"valid": false
},
{
"description": "single dot",
"data": ".",
"valid": false
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions tests/draft2020-12/optional/format/hostname.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@
"description": "empty string",
"data": "",
"valid": false
},
{
"description": "single dot",
"data": ".",
"valid": false
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions tests/draft2020-12/optional/format/idn-hostname.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@
"description": "empty string",
"data": "",
"valid": false
},
{
"description": "single dot",
"data": ".",
"valid": false
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions tests/draft4/optional/format/hostname.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@
"description": "empty string",
"data": "",
"valid": false
},
{
"description": "single dot",
"data": ".",
"valid": false
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions tests/draft6/optional/format/hostname.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@
"description": "empty string",
"data": "",
"valid": false
},
{
"description": "single dot",
"data": ".",
"valid": false
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions tests/draft7/optional/format/hostname.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@
"description": "empty string",
"data": "",
"valid": false
},
{
"description": "single dot",
"data": ".",
"valid": false
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions tests/draft7/optional/format/idn-hostname.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@
"description": "empty string",
"data": "",
"valid": false
},
{
"description": "single dot",
"data": ".",
"valid": false
}
]
}
Expand Down

0 comments on commit e524505

Please # to comment.