From 3c5e27aa6a0586de582b650c8c9131460e05ea8e Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Sun, 7 Apr 2024 17:03:11 -0400 Subject: [PATCH] Fix globbable path construction --- src/path.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/path.rs b/src/path.rs index d8c8f5e..48d82e6 100644 --- a/src/path.rs +++ b/src/path.rs @@ -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 {