From 719eb16a5e66f4f5586ca0f338f344f154f2c080 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 28 Nov 2016 19:57:57 +0000 Subject: [PATCH] Fix matching flags not being forwarded to regex_search Still does not fully fix #921 --- src/regex.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/regex.hh b/src/regex.hh index d2b37b547..2fed745dc 100644 --- a/src/regex.hh +++ b/src/regex.hh @@ -135,7 +135,7 @@ bool regex_search(It begin, It end, const Regex& re, using Utf8It = RegexUtf8It; try { - return boost::regex_search(Utf8It{begin, begin, end}, Utf8It{end, begin, end}, re); + return boost::regex_search(Utf8It{begin, begin, end}, Utf8It{end, begin, end}, re, flags); } catch (std::runtime_error& err) { @@ -150,7 +150,7 @@ bool regex_search(It begin, It end, MatchResults& res, const Regex& re, using Utf8It = RegexUtf8It; try { - return boost::regex_search(Utf8It{begin, begin, end}, Utf8It{end, begin, end}, res, re); + return boost::regex_search(Utf8It{begin, begin, end}, Utf8It{end, begin, end}, res, re, flags); } catch (std::runtime_error& err) {