Use MatchOptions::default() to disable case-sensitivity (#622)
Fixes #621
This commit is contained in:
parent
e2c5b45f4b
commit
90ceef9796
1 changed files with 2 additions and 1 deletions
|
|
@ -157,7 +157,8 @@ fn collect_files(
|
|||
fn apply_glob_pattern(path: PathBuf) -> Vec<PathBuf> {
|
||||
let matches = path
|
||||
.to_str()
|
||||
.and_then(|pattern| glob::glob(pattern).ok())
|
||||
// Use MatchOptions::default() to disable case-sensitivity
|
||||
.and_then(|pattern| glob::glob_with(pattern, glob::MatchOptions::default()).ok())
|
||||
.map(|paths| paths.flatten().collect::<Vec<_>>());
|
||||
|
||||
match matches {
|
||||
|
|
|
|||
Loading…
Reference in a new issue