Skip to content

Invalid port pattern is recognized in the sense of RFC3986  #45

@o314

Description

@o314
u = URI("//foo.com:bar")
using Test
@test u.port == "bar"

breaks the parsing of port as expected from https://www.ietf.org/rfc/rfc3986.html#section-3.2.3

The port subcomponent of authority is designated by an optional port
number in decimal following the host and delimited from it by a
single colon (":") character.

 port        = *DIGIT

The regex part is too broad @ https://github.com/JuliaWeb/URIs.jl/blob/master/src/URIs.jl#L94

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