Update to regex 0.2.

This commit is contained in:
Andrew Gallant
2016-12-30 16:24:09 -05:00
parent d58236fbdc
commit 163e00677a
14 changed files with 335 additions and 61 deletions

View File

@@ -473,7 +473,7 @@ impl<'a> ArgMatches<'a> {
/// unchanged.
fn literal_pattern(&self, pat: String) -> String {
if self.is_present("fixed-strings") {
regex::quote(&pat)
regex::escape(&pat)
} else {
pat
}