-
Notifications
You must be signed in to change notification settings - Fork 1
Description
The double slash (//
) in URIs is defined in RFC 3986 "Uniform Resource Identifier (URI): Generic Syntax." Specifically, the double slash appears in the authority part of a URI (Uniform Resource Identifier).
The double slash is not a required component of URIs. When an authority-part is not present, the path cannot begin with two slash characters ("//").
Our project currently requires the double slash characters to be present for a fragment to be identified as a link. It should not.
Care should be taken to avoid false positives (incorrectly identifying texts as links). It is probably best to always require the slashes for http
and https
schemes, for example, to prevent http:foo.bar
to be rendered as a link. Similarly, xmpp:coven@chat.shakespeare.lit?join
should be a link, but xmpp:foobar
should not.