diff options
| author | Igor Gnatenko <ignatenko@redhat.com> | 2017-02-26 15:09:09 +0100 |
|---|---|---|
| committer | Igor Gnatenko <ignatenko@redhat.com> | 2017-02-26 15:09:31 +0100 |
| commit | 3323056893a5437790d779d128e8eba3e1c1e5b2 (patch) | |
| tree | 9f1f2466da56441b8042e1159f3b2632568984cb /src | |
| parent | b9dfd29ce656565fba8905bad8decb804300fcbb (diff) | |
bump regex to 0.2
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.rs b/src/string.rs index d8b3711040c..8f51b09b6cc 100644 --- a/src/string.rs +++ b/src/string.rs @@ -32,7 +32,7 @@ pub struct StringFormat<'a> { // FIXME: simplify this! pub fn rewrite_string<'a>(orig: &str, fmt: &StringFormat<'a>) -> Option<String> { // Strip line breaks. - let re = Regex::new(r"([^\\](\\\\)*)\\[\n\r][:space:]*").unwrap(); + let re = Regex::new(r"([^\\](\\\\)*)\\[\n\r][[:space:]]*").unwrap(); let stripped_str = re.replace_all(orig, "$1"); let graphemes = UnicodeSegmentation::graphemes(&*stripped_str, false).collect::<Vec<&str>>(); |
