Fix to stop \A from matching successive matches.

[SVN r28384]
This commit is contained in:
John Maddock
2005-04-21 15:54:07 +00:00
parent 5473345609
commit d3a8abb5ef
2 changed files with 3 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public:
return true;
}
if(what.prefix().first != what[0].second)
flags |= match_prev_avail;
flags |= match_prev_avail | regex_constants::match_not_bob;
BidirectionalIterator last_end(what[0].second);
if(regex_search(last_end, end, what, re, ((what[0].first == what[0].second) ? flags | regex_constants::match_not_initial_null : flags)))
{