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

Multilined properties in quotes causes parsing to go wrong #45

Closed
rcjsuen opened this issue Aug 7, 2018 · 0 comments
Closed

Multilined properties in quotes causes parsing to go wrong #45

rcjsuen opened this issue Aug 7, 2018 · 0 comments
Assignees
Labels

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Aug 7, 2018

ENV 'ccc'='ddd' \
 'eee'='fff'
var dockerfileAst = require("dockerfile-ast")
var content = "ENV 'ccc'='ddd' \\\n 'eee'='fff'"
var dockerfile = dockerfileAst.DockerfileParser.parse(content)
var instruction = dockerfile.getInstructions()[0]
console.log(instruction.getProperties().length)

3 gets printed when it should be 2.

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

No branches or pull requests

1 participant