From 603baee777115e4f45aba7d8f401b131076a0e63 Mon Sep 17 00:00:00 2001 From: David Given Date: Tue, 19 Aug 2025 22:43:45 +0200 Subject: [PATCH] Fix a subtle bug that was causing misparsing of indexed fields on OSX. I hate C++. --- lib/config/proto.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;