lexically_relative: ignore trailing slash on base by ligfx · Pull Request #57 · gulrak/filesystem · GitHub
Skip to content

lexically_relative: ignore trailing slash on base - #57

Merged
gulrak merged 1 commit into
gulrak:masterfrom
ligfx:fix_lexically_relative_to_path_with_trailing_slash
Mar 23, 2020
Merged

lexically_relative: ignore trailing slash on base#57
gulrak merged 1 commit into
gulrak:masterfrom
ligfx:fix_lexically_relative_to_path_with_trailing_slash

Conversation

@ligfx

@ligfx ligfx commented Mar 22, 2020

Copy link
Copy Markdown
Contributor

Previously,

fs::path("a/b").lexically_relative("a/")

would incorrectly return "../b". Now it returns "b".

Fixes #56

Previously,

    fs::path("a/b").lexically_relative("a/")

would incorrectly return "../b". Now it returns "b".
@gulrak

gulrak commented Mar 23, 2020

Copy link
Copy Markdown
Owner

@gulrak
gulrak merged commit 82d5d83 into gulrak:master Mar 23, 2020
@gulrak gulrak added this to the v1.3.1 milestone Mar 23, 2020
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

Successfully merging this pull request may close these issues.

lexically_relative should ignore trailing slash on base

2 participants