Skip to content

Corner cases not handled correctly by normalizePath #97

@wrr

Description

@wrr

I found following two corner cases that do not seem to be handled correctly by normalizePath():

>URI('/.//').normalizePath().toString()
'//'

>URI('/foo/..').normalizePath().toString()
'/foo/..'

I can try to write a fix, if you agree that these two should both produce /

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