Skip to content

Commit

Permalink
Fix globbable path construction
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Apr 7, 2024
1 parent 99f6156 commit 3c5e27a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,9 @@ impl StrictPath {
}
}

// TODO: Better error reporting for incompatible UNC path variants.
pub fn globbable(&self) -> String {
self.display().trim().trim_matches(['/', '\\']).replace('\\', "/")
self.display().trim().trim_end_matches(['/', '\\']).replace('\\', "/")
}

fn canonical(&self) -> Canonical {
Expand Down

0 comments on commit 3c5e27a

Please # to comment.