Skip to content

Commit

Permalink
Add optional trailing dot to host-part (#639)
Browse files Browse the repository at this point in the history
A valid host can have a trailing dot, however this is not allowed by the current host-part ABNF. This change adds an optional dot at the end of host-part.

Co-authored-by: Saeid Eid <[email protected]>
  • Loading branch information
SaeidEid and Saeid Eid authored Jan 23, 2024
1 parent 459f886 commit d0de015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ spec: WebRTC; urlPrefix: https://www.w3.org/TR/webrtc/
<dfn export>host-source</dfn> = [ <a>scheme-part</a> "://" ] <a>host-part</a> [ ":" <a>port-part</a> ] [ <a>path-part</a> ]
<dfn>scheme-part</dfn> = <a>scheme</a>
; <a>scheme</a> is defined in section 3.1 of RFC 3986.
<dfn>host-part</dfn> = "*" / [ "*." ] 1*<a>host-char</a> *( "." 1*<a>host-char</a> )
<dfn>host-part</dfn> = "*" / [ "*." ] 1*<a>host-char</a> *( "." 1*<a>host-char</a> ) [ "." ]
<dfn>host-char</dfn> = <a>ALPHA</a> / <a>DIGIT</a> / "-"
<dfn>port-part</dfn> = 1*<a>DIGIT</a> / "*"
<dfn>path-part</dfn> = <a>path-absolute</a> (but not including ";" or ",")
Expand Down

0 comments on commit d0de015

Please sign in to comment.