fix resolvePlaceholders to handle multiple variables in a single string

This commit is contained in:
jrassa 2018-01-07 21:43:18 -05:00
parent b2111300c3
commit 27e91e78b4

View file

@ -188,7 +188,7 @@ std::string resolvePlaceholders(const char* in)
std::string prefix = inStr.substr(0, variableBegin); std::string prefix = inStr.substr(0, variableBegin);
std::string replace = inStr.substr(variableBegin + 2, variableEnd - (variableBegin + 2)); std::string replace = inStr.substr(variableBegin + 2, variableEnd - (variableBegin + 2));
std::string suffix = inStr.substr(variableEnd + 1); std::string suffix = resolvePlaceholders(inStr.substr(variableEnd + 1).c_str());
return prefix + mVariables[replace] + suffix; return prefix + mVariables[replace] + suffix;
} }