diff options
author | lesnyrumcajs <lesny.rumcajs@gmail.com> | 2019-03-04 17:18:45 +0100 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2019-04-06 10:35:08 -0400 |
commit | 5962abc4655a0f07ece6fc6bd45142e8ee1cab0c (patch) | |
tree | 56b1f051f3e803cd24aa2d980c3edcf765756bda /grep-regex | |
parent | 1604a18db3d896514e1d536781810642de4b31c1 (diff) |
searcher: add option to disable BOM sniffing
This commit adds a new encoding feature where the -E/--encoding flag
will now accept a value of 'none'. When given this value, all encoding
related machinery is disabled and ripgrep will search the raw bytes of
the file, including the BOM if it's present.
Closes #1207, Closes #1208
Diffstat (limited to 'grep-regex')
-rw-r--r-- | grep-regex/src/matcher.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grep-regex/src/matcher.rs b/grep-regex/src/matcher.rs index 391439d9..d71f5777 100644 --- a/grep-regex/src/matcher.rs +++ b/grep-regex/src/matcher.rs @@ -52,7 +52,7 @@ impl RegexMatcherBuilder { } let matcher = RegexMatcherImpl::new(&chir)?; - trace!("final regex: {:?}", matcher.regex()); + trace!("final regex: {:?}", matcher.regex().to_string()); Ok(RegexMatcher { config: self.config.clone(), matcher: matcher, |