Skip to content

Commit 2fe7bf2

Browse files
committed
Windows paths
1 parent 018f5d7 commit 2fe7bf2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/uv-globfilter/src/glob_dir_filter.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ impl GlobDirFilter {
3636
.regex()
3737
// We are using a custom DFA builder
3838
.strip_prefix("(?-u)")
39-
.expect("a glob is a non-unicode byte regex");
39+
.expect("a glob is a non-unicode byte regex")
40+
// Match windows paths if applicable
41+
.replace("/", &MAIN_SEPARATOR.to_string());
4042
regex
4143
})
4244
.collect();

0 commit comments

Comments
 (0)