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
{{ message }}
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
'a:1' is a plain scalar and not a key: value pair.
the value may be empty in key: value pairs.
Thus (and if I read this correctly) 'a:1' should parse to the string 'a:1' and 'a:' should parse to the key: value pair {a: null}. This is also the output of other YAML parsers:
Inputs of this type are discussed in the YAML standard (http://www.yaml.org/spec/1.2/spec.html, between examples 7.16 and 7.17). Specifically:
Thus (and if I read this correctly) 'a:1' should parse to the string 'a:1' and 'a:' should parse to the key: value pair {a: null}. This is also the output of other YAML parsers:
Online YAML parser (http://yaml-online-parser.appspot.com/)
based on pyyaml:
js-yaml (https://github.com/nodeca/js-yaml)
yamljs (https://github.com/jeremyfa/yaml.js)
The text was updated successfully, but these errors were encountered: