Don't insert a dollar sign for custom variables replacement

Change-Id: Ib62e65cc1e9634a1e93300f91adf85c9dad66194
This commit is contained in:
Marco van Dijk 2023-02-10 10:36:45 +01:00 committed by Thulinma
parent ea25d4b74b
commit b93901e107

View file

@ -139,7 +139,7 @@ size_t Util::streamCustomVariables(std::string &str){
for (size_t i = 0; i < varAccX.getEndPos(); i++){
// Replace $thisName with $thisVal
if (varAccX.getPointer("name", i)){
std::string thisName = "$" + std::string(varAccX.getPointer("name", i));
std::string thisName = std::string(varAccX.getPointer("name", i));
std::string thisVal = std::string(varAccX.getPointer("lastVal", i));
count += replaceVar(str, thisName, thisVal);
}