Take the remaining characters of a string instead of taking none in a condition of the stringInterpolation() function from Target.hpp
This commit is contained in:
parent
afc59c7a22
commit
b5697bf0a8
|
@ -50,7 +50,7 @@ protected:
|
|||
const bool closingBraceIsNPOS = closingBrace == string::npos;
|
||||
const bool wrongClosingBrace = !closingBraceIsNPOS && ((hasNext && closingBrace > interpolationVector[i + 1]));
|
||||
if (closingBraceIsNPOS || wrongClosingBrace) {
|
||||
output << view.substr(occurrence, (hasNext ? interpolationVector[i + 1] - occurrence : 0));
|
||||
output << view.substr(occurrence, (hasNext ? interpolationVector[i + 1] - occurrence : string::npos));
|
||||
}
|
||||
output << closeCharacters;
|
||||
if (not closingBraceIsNPOS && not wrongClosingBrace) {
|
||||
|
|
Loading…
Reference in New Issue