Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Error when parsing values in lists #12

Open
kevin-smets opened this issue Oct 5, 2017 · 2 comments
Open

Error when parsing values in lists #12

kevin-smets opened this issue Oct 5, 2017 · 2 comments

Comments

@kevin-smets
Copy link
Owner

Constructs like the following:

arr: [
  'one',
  'http://two'
]

Causes parsing errors: throw new Error('Key contains incomplete quoted section: "' + line + '"');

@asgoth
Copy link
Contributor

asgoth commented Oct 7, 2017

Consider migrating to js-yaml. Especially the option json: true is worth looking into.

@asgoth
Copy link
Contributor

asgoth commented Oct 7, 2017

Note: only possible solution is to sanitize the array above in

arr: [ 'one', 'http://two']

But then it would mean that

arr: [
  'one',
  'http://two'
]

works and the following not:

arr:
  - 'one'
  - 'http://two'

Which is a pity, because it doesn't allow to extend it (in the array notation).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants