mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-28 00:18:23 +00:00
Another minor fix for fmt::split
Doesn't affect existing code. If there are 2 or more separator, choose closest.
This commit is contained in:
parent
7cd79714fa
commit
c69c70cf5f
@ -429,11 +429,10 @@ std::vector<std::string> fmt::split(std::string_view source, std::initializer_li
|
||||
|
||||
for (auto& separator : separators)
|
||||
{
|
||||
if (usz pos0 = source.find(separator, index); pos0 != umax)
|
||||
if (usz pos0 = source.find(separator, index); pos0 < pos)
|
||||
{
|
||||
pos = pos0;
|
||||
sep_size = separator.size();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user