diff --git a/lib/config/proto.cc b/lib/config/proto.cc index f50cb97f..ab2e121f 100644 --- a/lib/config/proto.cc +++ b/lib/config/proto.cc @@ -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;