Skip to content

Path doesn't contain trailing slash when set via .path() #379

Closed
@kross-italk

Description

@kross-italk

It's possible this is desired and documented behavior, but I couldn't find anything explicitly about it and I was confused. I am using a non-regular protocol with a dash in it, so this should be a faithful reproduction of my test data. I would have expected setting .path() to not require me to pass in the slash.

var a = new URI('example-uri://username:password@127.0.0.1:8080/01234') a.path() "/01234" a.path('01234') a.path(); "01234"

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