You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug YAMLMap has wrong range in case if it empty.
To Reproduce
Parse:
{}
Root YAMLMap has always range: [ 0, 1, 1 ], it seems parser/lexer trims whitespaces/newlines inside {}. Expected behaviour
Root YAMLMap should have proper range, and value-end, node-end should point to real map/object end.
Versions (please complete the following information):
Environment: Node.js 12.x
yaml: 2.0.0-5
The text was updated successfully, but these errors were encountered:
Describe the bug
YAMLMap
has wrong range in case if it empty.To Reproduce
Parse:
Root
YAMLMap
has alwaysrange
:[ 0, 1, 1 ]
, it seems parser/lexer trims whitespaces/newlines inside{}
.Expected behaviour
Root
YAMLMap
should have proper range, andvalue-end
,node-end
should point to real map/object end.Versions (please complete the following information):
yaml
: 2.0.0-5The text was updated successfully, but these errors were encountered: