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

Fix lexically_relative return when base path evaluates to *this #179

Merged
merged 2 commits into from
Feb 29, 2024

Conversation

vgeorgiev
Copy link
Contributor

Fix the return of lexally_relative when called with the following values:

"/a/b/c".lexally_relative("/a/b/c/d/..") == "."

The proposed change is based on the following line from the documentation:

"otherwise, if N = 0 and a == end() || a->empty(), returns path("."), "

@gulrak
Copy link
Owner

gulrak commented Feb 29, 2024

Nice find! Thank you for the contribution!

@gulrak gulrak merged commit 42ea4fc into gulrak:master Feb 29, 2024
10 of 19 checks passed
@gulrak gulrak added the available on master Fix is done on master branch, issue closed on next release label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
available on master Fix is done on master branch, issue closed on next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants