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

Instruction's getExpandedArguments() does not quoted variables correctly #52

Closed
rcjsuen opened this issue Apr 20, 2019 · 0 comments
Closed
Assignees
Labels

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Apr 20, 2019

import { DockerfileParser } from './main'
let dockerfile = DockerfileParser.parse("FROM scratch\nENV VAR=value\nRUN echo \"$VAR\"");
let args = dockerfile.getInstructions()[2].getExpandedArguments();
console.log(args[1].getValue());
"value

It seems like the closing quotation mark is being dropped.

@rcjsuen rcjsuen added the bug label Apr 20, 2019
@rcjsuen rcjsuen self-assigned this Apr 20, 2019
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