Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML parser treats leading ' (single quote) as special #106

Closed
smikes opened this issue Oct 25, 2014 · 3 comments
Closed

YAML parser treats leading ' (single quote) as special #106

smikes opened this issue Oct 25, 2014 · 3 comments

Comments

@smikes
Copy link
Contributor

smikes commented Oct 25, 2014

The following frontmatter parses cleanly:

description: ensure correct value for 'this'

The following causes a test error:

description: 'this' must have correct value

I was surprised by this, and would like to make a note of it here. I believe this is a YAML feature. To avoid problems, don't start scalar fields with a single-quote.

@smikes
Copy link
Contributor Author

smikes commented Oct 25, 2014

FYI to test writers, notably @anba . Probably not a surprise, but I wanted to document it.

@smikes smikes closed this as completed Oct 25, 2014
@bterlson
Copy link
Member

Or wrap the entire field in double quotes :) This is working as intended, I think this is wontfix.

@smikes
Copy link
Contributor Author

smikes commented Oct 25, 2014

Yup.

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

No branches or pull requests

2 participants