mirror of
https://github.com/boostorg/regex.git
synced 2025-07-16 22:02:08 +02:00
Fix icu behaviour with partial matches. See https://svn.boost.org/trac/boost/ticket/10114
This commit is contained in:
@ -397,10 +397,10 @@ void copy_results(MR1& out, MR2 const& in)
|
||||
out.set_base(in.base().base());
|
||||
for(int i = 0; i < (int)in.size(); ++i)
|
||||
{
|
||||
if(in[i].matched)
|
||||
if(in[i].matched || !i)
|
||||
{
|
||||
out.set_first(in[i].first.base(), i);
|
||||
out.set_second(in[i].second.base(), i);
|
||||
out.set_second(in[i].second.base(), i, in[i].matched);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user