mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-24 11:11:02 -07:00
Fix a subtle bug that was causing misparsing of indexed fields on OSX. I hate
C++.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user