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

Escape character after a label causes the next label with quotes to not have a name #90

Closed
rcjsuen opened this issue Apr 11, 2021 · 0 comments
Assignees
Labels

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Apr 11, 2021

ENV a=b\
 "c"="d"
const library = require("dockerfile-ast");
const dockerfile = library.DockerfileParser.parse("ENV a=b\\\n \"c\"=\"d\"");
const properties = dockerfile.getInstructions()[0].getProperties();
console.log(`${properties[0].getName()}-${properties[0].getValue()}`);
console.log(`${properties[1].getName()}-${properties[1].getValue()}`);
a-b
-d
@rcjsuen rcjsuen added the bug label Apr 11, 2021
@rcjsuen rcjsuen self-assigned this Apr 11, 2021
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