Skip to content

Quotes dropped at the end of a value #45

Closed
@tobischo

Description

@tobischo

When having a value which includes quotes, godotenv seems to drop them automatically:

TEST = "echo 'asd'"

results in

echo 'asd

Short term solution by adding a space after it works for our usecase, however I doubt that this is the case in general
example that works:

TEST = "echo 'asd' "

results in

echo 'asd'

In hindsight after reading

The parser itself is pretty stupidly naive and I wouldn’t be surprised if it breaks with edge cases.

it is not particularly surprising.
Maybe this can be used as an example to make it a bit smarter?

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