We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
20.12.0
Linux xxx 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
No response
process.loadEnvFile() doesn't ignore (first) comment line.
process.loadEnvFile()
Create an example .env file with two comments
.env
#FOO=123 #BAR=456
and run the following code snippet
process.loadEnvFile(); console.log("FOO", process.env.FOO); console.log("BAR", process.env.BAR);
Example repo: https://github.com/steffen-4s1/dotenv
Always
All comment lines should be ignored.
FOO undefined BAR undefined
FOO isn't ignored.
FOO
FOO 123 BAR undefined
The text was updated successfully, but these errors were encountered:
Duplicate #52084
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Version
20.12.0
Platform
Linux xxx 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
Description
process.loadEnvFile()
doesn't ignore (first) comment line.What steps will reproduce the bug?
Create an example
.env
file with two commentsand run the following code snippet
Example repo: https://github.com/steffen-4s1/dotenv
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
All comment lines should be ignored.
What do you see instead?
FOO
isn't ignored.Additional information
No response
The text was updated successfully, but these errors were encountered: