Corrected a bug where variables followed by an equal sign did not get replaced properly

This commit is contained in:
paulfd 2019-09-09 18:00:37 +02:00
parent 4cd9665b48
commit 000a598823

View file

@ -129,7 +129,7 @@ void sfz::Parser::readSfzFile(const std::filesystem::path& fileName, std::vector
while (findPos < tmpView.npos) {
newString.append(tmpView, lastPos, findPos - lastPos);
const auto defineEnd = tmpView.find_first_of(" \r\t\n\f\v", findPos);
const auto defineEnd = tmpView.find_first_of("= \r\t\n\f\v", findPos);
const auto candidate = tmpView.substr(findPos, defineEnd - findPos);
for (auto& definePair : defines) {
if (candidate == definePair.first) {