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 causes two instructions to be merged as one #97

Closed
rcjsuen opened this issue Sep 7, 2021 · 0 comments
Closed

Escape character causes two instructions to be merged as one #97

rcjsuen opened this issue Sep 7, 2021 · 0 comments
Assignees
Labels

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Sep 7, 2021

ab\c
a
const lib = require("dockerfile-ast");
const dockerfile = lib.DockerfileParser.parse("ab\\c\na");
console.log(dockerfile.getInstructions().length);
1

2 should be printed instead of 1.

@rcjsuen rcjsuen added the bug label Sep 7, 2021
@rcjsuen rcjsuen self-assigned this Sep 7, 2021
@rcjsuen rcjsuen closed this as completed in 7a67a51 Sep 7, 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