summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/variant/Reader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/variant/Reader.cpp b/src/core/variant/Reader.cpp
index a0bba52..2541420 100644
--- a/src/core/variant/Reader.cpp
+++ b/src/core/variant/Reader.cpp
@@ -158,6 +158,7 @@ std::pair<bool, std::string> Reader::parseUnescapedString(
int state = STATE_IN_STRING;
while (reader.peek(&c)) {
if (delims.count(c)) {
+ reader.resetPeek();
return std::make_pair(true, res.str());
} else if (Utils::isWhitespace(c)) {
// Do not add whitespace to the output buffer