Skip to content

lexically_relative should ignore trailing slash on base #56

@ligfx

Description

@ligfx

Expected behavior

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

Actual behavior

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

(tested on AppleClang 11.0.0 on macOS 10.15.3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    available on masterFix is done on master branch, issue closed on next releasebugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions