diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-11-28 19:57:57 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-11-28 20:02:40 +0000 |
| commit | 719eb16a5e66f4f5586ca0f338f344f154f2c080 (patch) | |
| tree | d29ed0f445c8ce035676b4b602301f8269a77d1c /src | |
| parent | 3172c8cfffc3dde038c4ef3891390d10aab8e14c (diff) | |
Fix matching flags not being forwarded to regex_search
Still does not fully fix #921
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regex.hh b/src/regex.hh index d2b37b54..2fed745d 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<It>; 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<It>& res, const Regex& re, using Utf8It = RegexUtf8It<It>; 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) { |
