Skip to content

Support for Windows path (\ instead of /) #108

@tdurieux

Description

@tdurieux

Hello,

I have an issue with windows paths such as VOLUME C:\\data\\db C:\\data\\configdb
In this case, dockerfile-ast automatically removes the \ from the argument but I want to keep the \ in order to have a valid path. Is there a reason why the \\ are removed from the arguments?
I saw that the escaped character is ignored here: https://github.com/rcjsuen/dockerfile-ast/blob/master/src/instruction.ts#L296 is it intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions