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

normalize quotes for values in .env #194

Merged
merged 2 commits into from
Sep 8, 2022
Merged

Conversation

kcarra
Copy link
Collaborator

@kcarra kcarra commented Sep 2, 2022

In the case that the values of a .env file contain strings:

FOO="BAR"
BAZ='BAX'

it would be nice to normalize the values before returning them when calling the parse function. Currently if a .env file has values that contain quotes (single or double) the quotes are preserved when setting the value on the result object, leading to situations like this {FOO: '"BAR"'}.

@kcarra
Copy link
Collaborator Author

kcarra commented Sep 2, 2022

@balupton what are your thoughts on this?

@balupton
Copy link
Member

balupton commented Sep 3, 2022

@kcarra added you as a maintainer, feel free to what you think is best. Make sure to follow the instructions in CONTRIBUTING.md for the release/CI process, which is powered by https://github.com/bevry/boundation

@kcarra kcarra marked this pull request as ready for review September 8, 2022 16:31
@kcarra kcarra merged commit f39a8f4 into bevry:master Sep 8, 2022
@kcarra kcarra deleted the handle-quotes branch September 8, 2022 16:41
@balupton
Copy link
Member

good work with the release, all done perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants