about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorIgor Gnatenko <ignatenko@redhat.com>2017-02-26 15:09:09 +0100
committerIgor Gnatenko <ignatenko@redhat.com>2017-02-26 15:09:31 +0100
commit3323056893a5437790d779d128e8eba3e1c1e5b2 (patch)
tree9f1f2466da56441b8042e1159f3b2632568984cb /src
parentb9dfd29ce656565fba8905bad8decb804300fcbb (diff)
bump regex to 0.2
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/string.rs2
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>>();