Fix a subtle bug that was causing misparsing of indexed fields on OSX. I hate

C++.
This commit is contained in:
David Given
2025-08-19 22:43:45 +02:00
parent e105b7f498
commit 603baee777

View File

@@ -75,8 +75,10 @@ static int splitIndexedField(std::string& item)
std::smatch dmatch;
if (std::regex_match(item, dmatch, INDEX_REGEX))
{
item = dmatch[1];
auto stem = dmatch[1];
index = std::stoi(dmatch[2]);
item = stem;
}
return index;