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

Single-escaped strings with '' should be valid #60

Open
irony opened this issue Jun 4, 2016 · 0 comments
Open

Single-escaped strings with '' should be valid #60

irony opened this issue Jun 4, 2016 · 0 comments

Comments

@irony
Copy link

irony commented Jun 4, 2016

When trying to parse this valid string

key:
value: 'Let''s encode this'

It throws this error:

Error: hash not properly dedented, near "'s escape this'"
at Parser.expect (/Users/cln/src/js-yaml/lib/yaml.js:183:9)
at Parser.parseHash (/Users/cln/src/js-yaml/lib/yaml.js:287:12)
at Parser.parse (/Users/cln/src/js-yaml/lib/yaml.js:244:19)
at Object.exports.eval (/Users/cln/src/js-yaml/lib/yaml.js:388:46)
at /Users/cln/src/js-yaml/examples/run.js:14:20
at FSReqWrap.readFileAfterClose as oncomplete

http://symfony.com/doc/current/components/yaml/yaml_format.html

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

1 participant