Skip to content

Relax requirement of // #7

@guusdk

Description

@guusdk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions