Corrected a bug where variables followed by an equal sign did not get replaced properly
This commit is contained in:
parent
4cd9665b48
commit
000a598823
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ void sfz::Parser::readSfzFile(const std::filesystem::path& fileName, std::vector
|
||||||
while (findPos < tmpView.npos) {
|
while (findPos < tmpView.npos) {
|
||||||
newString.append(tmpView, lastPos, findPos - lastPos);
|
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);
|
const auto candidate = tmpView.substr(findPos, defineEnd - findPos);
|
||||||
for (auto& definePair : defines) {
|
for (auto& definePair : defines) {
|
||||||
if (candidate == definePair.first) {
|
if (candidate == definePair.first) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue