Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URIs.splitpath(::String) unexpected behaviour #37

Open
fonsp opened this issue Apr 22, 2022 · 1 comment
Open

URIs.splitpath(::String) unexpected behaviour #37

fonsp opened this issue Apr 22, 2022 · 1 comment

Comments

@fonsp
Copy link
Member

fonsp commented Apr 22, 2022

julia> URIs.splitpath(URIs.URI("https://asdf.com/a/b?x=y#z"))
2-element Vector{String}:
 "a"
 "b"

julia> URIs.splitpath("https://asdf.com/a/b?x=y#z")
5-element Vector{String}:
 "https:"
 ""
 "asdf.com"
 "a"
 "b"

Based on the documentation for splitpath, I expected both to return the same result.

@quinnj
Copy link
Member

quinnj commented Apr 22, 2022

Yeah, it seems we need to call URIs.URI on the string input to splitpath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants