diff options
Diffstat (limited to 'src/fmt_path.rs')
| -rw-r--r-- | src/fmt_path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmt_path.rs b/src/fmt_path.rs index e2c06a4..90a8d64 100644 --- a/src/fmt_path.rs +++ b/src/fmt_path.rs @@ -94,7 +94,7 @@ pub fn fmt_path_str_custom( config: &PathFormatConfig, ) -> Result<String, PathFormatError> { let path_result = path.into(); - let ends_with_slash = path_result.ends_with('/'); + let ends_with_slash = path_result.ends_with('/') || path_result.ends_with('\\'); // ANSI Strip #[cfg(feature = "strip-ansi")] |
