We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee01d71 commit 19494ffCopy full SHA for 19494ff
common/json-schema-to-grammar.cpp
@@ -483,7 +483,8 @@ class SchemaConverter {
483
seq.emplace_back("|", false);
484
i++;
485
} else if (c == '*' || c == '+' || c == '?') {
486
- seq.back() = std::make_pair(to_rule(seq.back()) + c, false);
+ if (!seq.empty())
487
+ seq.back() = std::make_pair(to_rule(seq.back()) + c, false);
488
489
} else if (c == '{') {
490
std::string curly_brackets = std::string(1, c);
0 commit comments