Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Corner cases not handled correctly by normalizePath #97

Closed
wrr opened this Issue · 3 comments

2 participants

@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 /

@wrr

And one more:

>URI('/.').normalizePath().toString()
'/.'
@rodneyrehm
Owner

true. Maybe @djcsdy has some htoughts on that, he already fixed a couple of edge cases (see open pull requests)

@rodneyrehm
Owner

I've fixed this in master - it will be included in the next release. thank you for your help!

@rodneyrehm rodneyrehm closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.