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

Handle quoted heredoc delimiter names #94

Closed
rcjsuen opened this issue Aug 10, 2021 · 0 comments
Closed

Handle quoted heredoc delimiter names #94

rcjsuen opened this issue Aug 10, 2021 · 0 comments
Assignees

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Aug 10, 2021

RUN <<'EOT'
  echo
EOT
RUN echo
const lib = require("dockerfile-ast");
const dockerfile = lib.DockerfileParser.parse("RUN <<'EOT'\n  echo\nEOT\nRUN echo");
console.log(dockerfile.getInstructions().length);
1

It should print 2 instead of 1.

@rcjsuen rcjsuen self-assigned this Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant