diff options
Diffstat (limited to 'cli/util/glob.rs')
-rw-r--r-- | cli/util/glob.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cli/util/glob.rs b/cli/util/glob.rs index 7bd600167..4fe8a9a0a 100644 --- a/cli/util/glob.rs +++ b/cli/util/glob.rs @@ -248,9 +248,11 @@ impl GlobPattern { } pub fn new(pattern: &str) -> Result<Self, AnyError> { - let pattern = - glob::Pattern::new(&escape_brackets(pattern).replace('\\', "/")) - .with_context(|| format!("Failed to expand glob: \"{}\"", pattern))?; + let pattern = escape_brackets(pattern) + .replace('\\', "/") + .replace("/./", "/"); + let pattern = glob::Pattern::new(&pattern) + .with_context(|| format!("Failed to expand glob: \"{}\"", pattern))?; Ok(Self(pattern)) } |