Use MatchOptions::default() to disable case-sensitivity (#622)

Fixes #621
This commit is contained in:
andrews05 2024-06-05 04:08:07 +12:00 committed by GitHub
parent e2c5b45f4b
commit 90ceef9796
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {