aboutsummaryrefslogtreecommitdiff
path: root/libbutl/regex.txx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-03-01 11:19:16 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-03-01 11:19:16 +0300
commit307e30572fdeadf97b9febfefd70c5bac3f908e6 (patch)
treea38eed41e7c7051e52120d4a7957ad0e4d8229a0 /libbutl/regex.txx
parent8504149fc1c70ecc5c7743c3522ae70de68b0694 (diff)
Add '\n' to regex_replace_*() substitution escape sequences
Diffstat (limited to 'libbutl/regex.txx')
-rw-r--r--libbutl/regex.txx3
1 files changed, 2 insertions, 1 deletions
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;