mirror of
https://github.com/boostorg/regex.git
synced 2025-07-18 14:52:08 +02:00
Fix bug that prevents turning off multiple Perl-modifiers at once.
Fixes #5223. [SVN r69775]
This commit is contained in:
@ -2712,6 +2712,8 @@ regex_constants::syntax_option_type basic_regex_parser<charT, traits>::parse_opt
|
||||
}
|
||||
while(!breakout);
|
||||
|
||||
breakout = false;
|
||||
|
||||
if(*m_position == static_cast<charT>('-'))
|
||||
{
|
||||
if(++m_position == m_end)
|
||||
|
@ -337,6 +337,7 @@ void test_options2()
|
||||
TEST_REGEX_SEARCH("(?s).", perl, "\n", match_default|match_not_dot_newline, make_array(0, 1, -2, -2));
|
||||
TEST_REGEX_SEARCH("(?-s).", perl, "\n", match_default, make_array(-2, -2));
|
||||
TEST_REGEX_SEARCH("(?-s).", perl, "\n", match_default|match_not_dot_newline, make_array(-2, -2));
|
||||
TEST_REGEX_SEARCH("(?-xism)d", perl, "d", match_default, make_array(0, 1, -2, -2));
|
||||
test_options3();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user