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 4735f26 commit 3eaee44Copy full SHA for 3eaee44
src/prologue/yaml-cpp/src/singledocparser.cpp
@@ -91,8 +91,11 @@ void SingleDocParser::HandleNode(EventHandler& eventHandler) {
91
const Token& token = m_scanner.peek();
92
93
// add non-specific tags
94
- if (tag.empty())
+ if (tag.empty()){
95
tag = (token.type == Token::NON_PLAIN_SCALAR ? "!" : "?");
96
+ if (tag == "!")
97
+ tag = "tag:yaml.org,2002:str"; // explicitly indicate string by tag
98
+ }
99
100
if (token.type == Token::PLAIN_SCALAR
101
&& tag.compare("?") == 0 && IsNullString(token.value)) {
0 commit comments