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

Value ending and starting with quote marks " or ' #123

Closed
Hatell opened this issue Sep 27, 2021 · 1 comment · Fixed by #124
Closed

Value ending and starting with quote marks " or ' #123

Hatell opened this issue Sep 27, 2021 · 1 comment · Fixed by #124

Comments

@Hatell
Copy link

Hatell commented Sep 27, 2021

If I have value starting and ending with quote ' or " in .env -file then quotes are removed from value.

I have a password 'hello' and I would like to pass it to .env -file like this

PASS="'hello'"

This isn't possible because decouple.py:132 line strip all ' or " characters from begin and end of the string v.

v = v.strip('\'"')

Instead of that I would do the removing of quotes like this

v = v[1:-1]
@henriquebastos
Copy link
Collaborator

This is a relevante issue. It seems related to #103.

If you can provide a PR improving the test code I would be glad to take a look.

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 a pull request may close this issue.

2 participants