From 90ceef979601e362343aaa159c06513c80034204 Mon Sep 17 00:00:00 2001 From: andrews05 Date: Wed, 5 Jun 2024 04:08:07 +1200 Subject: [PATCH] Use MatchOptions::default() to disable case-sensitivity (#622) Fixes #621 --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 76472b85..7fe66a26 100644 --- a/src/main.rs +++ b/src/main.rs @@ -157,7 +157,8 @@ fn collect_files( fn apply_glob_pattern(path: PathBuf) -> Vec { 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::>()); match matches {