mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -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;
|
std::smatch dmatch;
|
||||||
if (std::regex_match(item, dmatch, INDEX_REGEX))
|
if (std::regex_match(item, dmatch, INDEX_REGEX))
|
||||||
{
|
{
|
||||||
item = dmatch[1];
|
auto stem = dmatch[1];
|
||||||
index = std::stoi(dmatch[2]);
|
index = std::stoi(dmatch[2]);
|
||||||
|
|
||||||
|
item = stem;
|
||||||
}
|
}
|
||||||
|
|
||||||
return index;
|
return index;
|
||||||
|
|||||||
Reference in New Issue
Block a user