Merge pull request #341 from jrassa/theme-variables-fix

fix resolvePlaceholders to handle multiple variables in a single string
This commit is contained in:
John Rassa 2018-01-08 18:32:09 -05:00 committed by GitHub
commit 0d21bffc4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,7 +188,7 @@ std::string resolvePlaceholders(const char* in)
std::string prefix = inStr.substr(0, variableBegin);
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;
}