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

Improve quote support in sanitize #7

Merged
merged 7 commits into from
Apr 25, 2016
Merged

Improve quote support in sanitize #7

merged 7 commits into from
Apr 25, 2016

Conversation

bgotink
Copy link
Contributor

@bgotink bgotink commented Apr 22, 2016

  • no longer support weird quoting

  • throw on incomplete quoting

  • throw on nested quotes

  • support using quotes not at the end of a key:

    foo."bar.baz".qux: Lorem ipsum

bgotink added 5 commits April 22, 2016 21:55
- no longer support weird quoting
- throw on incomplete quoting
- throw on nested quotes
- support using quotes not at the end of a key:
    foo."bar.baz".qux: Lorem ipsum
function read(fileName) {
return fs.readFileSync('test/fixtures/' + fileName + '.yml', 'utf8');
function readFixture(name, extension) {
return fs.readFileSync(`test/fixtures/${name}.${extension || 'yml'}`, 'utf-8');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, Node 0.12…

@kevin-smets
Copy link
Owner

Awesome, thanks for the contrib! Will publish asap.

@kevin-smets kevin-smets merged commit 8b26df9 into kevin-smets:master Apr 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants