nushell/crates/nu-path/src
ahkrr fa957a1a07
fix: 3 or more dots in file paths (#8544)
# Description
In cases that a path contained 3 or more `.` in succession followed by a
path-separator, the dots would be expanded.
This logic didn't take into account the cases where characters other
than a separator could appear before the `...`, which would lead to
`...` in filenames being expanded.
This PR changes the behavior so that path-segments consisting of 3 or
more dots only will be expanded.
This PR fixes issue #8386


# User-Facing Changes
Paths with filenames like `.../folder.../file.txt` will be correctly
expanded.

# Tests + Formatting

I added tests that cover a number of cases.
2023-06-18 15:21:57 +02:00
..
dots.rs fix: 3 or more dots in file paths (#8544) 2023-06-18 15:21:57 +02:00
expansions.rs Try not to use verbatim paths for UNC shares (#6824) 2022-10-22 11:51:52 -05:00
helpers.rs Try not to use verbatim paths for UNC shares (#6824) 2022-10-22 11:51:52 -05:00
lib.rs Allow mv multiple files at once (#6103) 2022-07-23 07:51:41 -05:00
tilde.rs Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
util.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00