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
When I test YAML packages, I found some seemingly correct YAML cannot be parsed by this package.
Specifically, when tags or anchors occur in all but first implicit key, and map containing such key is not the top level node, this package reports a syntax error.
To Reproduce
varyaml=require('yaml');vardoc1=`some: !!str &a1 "foo": !!str bar &a2 baz : *a1`;// error on yamlconsole.log(yaml.parse(doc1));
Expected behaviour
I don't know if this is legal YAML. However, line 2 ~ 4 of doc1 is copied from yaml 1.2.2 spec.
Versions (please complete the following information):
Environment:
Node.js: 16.13.1
yaml: 2.0.0
js-yaml: 4.1.0
The text was updated successfully, but these errors were encountered:
Describe the bug
When I test YAML packages, I found some seemingly correct YAML cannot be parsed by this package.
Specifically, when tags or anchors occur in all but first implicit key, and map containing such key is not the top level node, this package reports a syntax error.
To Reproduce
Expected behaviour
I don't know if this is legal YAML. However, line 2 ~ 4 of doc1 is copied from yaml 1.2.2 spec.
Versions (please complete the following information):
Node.js
: 16.13.1yaml
: 2.0.0js-yaml
: 4.1.0The text was updated successfully, but these errors were encountered: