-
Notifications
You must be signed in to change notification settings - Fork 391
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
BUG: Variable not correct #127
Comments
I can observe similar issue, but my variable contains (hash) |
Also seeing the same as @grzany |
@grzany I believe |
@pjebs yes, I suspect so |
This looks like intended behaviour - |
How do you escape? |
|
It doesn't say anywhere in docs that you need to escape. In fact, we should not have to escape at all because passwords etc may legitimately have $ characters |
Disclaimer - I'm not a maintainer of this library, but I would guess it doesn't mention it in the docs as it isn't a behaviour specific to this library. Variable expansion using |
same issue here, string with |
I think the issue is related to the Regex operation performed in function expandVariables, ENV(s): Result: The Result over Commented expandVariables: |
Another solution: stripping off Lines 230 to 232 in ddf83eb
|
When a hash is part of the environment value, without a preceding whitespace, it should not be interpreted as a comment. Fixes joho/godotenv#127
In
.env
file:Variable after being read back:
kAjMfB<Qdq$7KJ!HbFO3o9Vi?acrxnI(eDl^GhEmSL4[2Xz*vs58Z+NY10R6Uw%y
This is not correct:
The text was updated successfully, but these errors were encountered: