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

Variable names can only be alphanumeric #58

Closed
rcjsuen opened this issue May 22, 2019 · 0 comments
Closed

Variable names can only be alphanumeric #58

rcjsuen opened this issue May 22, 2019 · 0 comments
Assignees
Labels

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented May 22, 2019

import { DockerfileParser } from 'dockerfile-ast'
let dockerfile = DockerfileParser.parse("FROM $image:2");
let from = dockerfile.getInstructions()[0];
let variable = from.getVariables()[0];
console.log(variable.getName());

The above code prints out image:2 but it should print out image instead.

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