From 79a0345201db6810658a04041a1d24c7031bcc53 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Tue, 25 Jan 2022 10:36:30 +0100 Subject: [PATCH] Further GCodeFindReplace adjustmnets of regular expressions: match_single_line: ^$ will NOT match \n --- src/libslic3r/GCode/FindReplace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode/FindReplace.cpp b/src/libslic3r/GCode/FindReplace.cpp index 01f7f92a3a..4ad2eff36f 100644 --- a/src/libslic3r/GCode/FindReplace.cpp +++ b/src/libslic3r/GCode/FindReplace.cpp @@ -116,7 +116,7 @@ std::string GCodeFindReplace::process_layer(const std::string &ain) temp.clear(); temp.reserve(in->size()); boost::regex_replace(ToStringIterator(temp), in->begin(), in->end(), - substitution.regexp_pattern, substitution.format, boost::match_default /* | boost::match_not_dot_newline | boost::match_not_dot_null */ | boost::format_all); + substitution.regexp_pattern, substitution.format, boost::match_default | boost::match_single_line /* | boost::match_not_dot_newline | boost::match_not_dot_null */ | boost::format_all); std::swap(out, temp); } else { if (in == &ain)