summaryrefslogtreecommitdiffstats
path: root/src/args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/args.rs')
-rw-r--r--src/args.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/args.rs b/src/args.rs
index d2077d67..c7b31dd3 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -599,7 +599,7 @@ impl<'a> ArgMatches<'a> {
// This would normally just be an empty string, which works on its
// own, but if the patterns are joined in a set of alternations, then
// you wind up with `foo|`, which is invalid.
- self.word_pattern("z{0}".to_string())
+ self.word_pattern("(?:z{0})*".to_string())
}
/// Returns true if and only if file names containing each match should