We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ARG \ # comment var=value
ENV \ # comment var=value
import { DockerfileParser, PropertyInstruction } from 'dockerfile-ast'; let dockerfile = DockerfileParser.parse("ENV \\\n# comment"); let instruction = dockerfile.getInstructions()[0]; let properties = (instruction as PropertyInstruction).getProperties(); console.log(properties.length); dockerfile = DockerfileParser.parse("ENV \\\n# comment\nvar=value"); instruction = dockerfile.getInstructions()[0]; properties = (instruction as PropertyInstruction).getProperties(); console.log(properties.length); console.log(properties[0].getName()); dockerfile = DockerfileParser.parse("ARG \\\n# comment"); instruction = dockerfile.getInstructions()[0]; properties = (instruction as PropertyInstruction).getProperties(); console.log(properties.length); dockerfile = DockerfileParser.parse("ARG \\\n# comment\nvar=value"); instruction = dockerfile.getInstructions()[0]; properties = (instruction as PropertyInstruction).getProperties(); console.log(properties.length); console.log(properties[0].getName());
We should expect the first scenario to not have any properties and the second to have a property with a name of var. This is not the case though.
var
1 1 # 1 1 #
The text was updated successfully, but these errors were encountered:
2ec0f6c
rcjsuen
No branches or pull requests
We should expect the first scenario to not have any properties and the second to have a property with a name of
var
. This is not the case though.The text was updated successfully, but these errors were encountered: