summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-03-10 14:02:06 -0500
committerAndrew Gallant <jamslam@gmail.com>2018-03-12 23:21:42 -0400
commit1f70e9187ceca65e7196f65e8cad1cba65efb47c (patch)
tree3b7b64fc69812a9bea2c907a1668657115d2e797 /src
parent7120f3225862f6c718a37a8616debaebd8c3d459 (diff)
deps: update regex crate
This update brings with it a new feature of the regex crate which will now use SIMD optimizations automatically at runtime with no necessary compile time flags. All that's needed is to enable the `unstable` feature. Other crates, such as bytecount and encoding_rs, are still using the old-style SIMD support, so we leave the simd-accel and avx-accel features. However, the binaries we distribute on Github no longer have those features enabled, which makes them truly portable. Fixes #135
Diffstat (limited to 'src')
-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