toml-node icon indicating copy to clipboard operation
toml-node copied to clipboard

Empty String Key is parsed as "undefined"

Open boushley opened this issue 4 years ago • 0 comments

If I have a TOML file like:

"" = "foo bar"

this will be converted to {"undefined": "foo bar"}

This same issue exists at any level of nesting.

According to the TOML spec an empty quoted key is allowed: https://github.com/toml-lang/toml/blob/master/README.md#user-content-keys

It shows it as discouraged, but still shouldn't be parsed as "undefined"

boushley avatar Dec 27 '19 00:12 boushley