If a placehodler match is found, instead of incrementing both lastPos and i by two, we have to increment only lastPos by two, and i by one, because i is also incremented by one again by the end of the loop.
Before this fix, i would have been incremented by three which caused the second placeholder to be skipped.
If a placehodler match is found, instead of incrementing both
lastPos
andi
by two, we have to increment onlylastPos
by two, andi
by one, becausei
is also incremented by one again by the end of the loop.Before this fix,
i
would have been incremented by three which caused the second placeholder to be skipped.Fixes #18