From 307e30572fdeadf97b9febfefd70c5bac3f908e6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 1 Mar 2019 11:19:16 +0300 Subject: Add '\n' to regex_replace_*() substitution escape sequences --- libbutl/regex.txx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libbutl/regex.txx') diff --git a/libbutl/regex.txx b/libbutl/regex.txx index 1f87663..96b1f54 100644 --- a/libbutl/regex.txx +++ b/libbutl/regex.txx @@ -137,7 +137,8 @@ LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason. switch (c) { - case '\\': append_chr (c); break; + case '\\': append_chr (c); break; + case 'n': append_chr ('\n'); break; case 'u': mode = case_conv::upper_once; break; case 'l': mode = case_conv::lower_once; break; -- cgit v1.1