Skip to content

Commit

Permalink
Allow empty quoted strings in the parser
Browse files Browse the repository at this point in the history
  • Loading branch information
mmp committed May 14, 2018
1 parent 0761c1f commit 6435419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ static double parseNumber(string_view str) {
}

inline bool isQuotedString(string_view str) {
return str.size() >= 3 && str[0] == '"' && str.back() == '"';
return str.size() >= 2 && str[0] == '"' && str.back() == '"';
}

static string_view dequoteString(string_view str) {
Expand Down

0 comments on commit 6435419

Please sign in to comment.