Skip to content

Commit

Permalink
Use MatchOptions::default() to disable case-sensitivity (#622)
Browse files Browse the repository at this point in the history
Fixes #621
  • Loading branch information
andrews05 committed Jun 4, 2024
1 parent e2c5b45 commit 90ceef9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 90ceef9

Please sign in to comment.