diff options
-rw-r--r-- | reference_model/src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/reference_model/src/main.cpp b/reference_model/src/main.cpp index 6d50f9e..6970bb1 100644 --- a/reference_model/src/main.cpp +++ b/reference_model/src/main.cpp @@ -557,7 +557,9 @@ std::vector<std::string> parseFromString(std::string raw_str) if (end == std::string::npos) last_pair = true; - name = raw_str.substr(start, end); + // The second parameter holds for number of characters to include in the substring, + // not for the index of the end of the capture. + name = raw_str.substr(start, end - start); result.push_back(name); |