toddbluhm / env-cmd

Setting environment variables from a file
https://www.npmjs.com/package/env-cmd
MIT License
1.73k stars 65 forks source link

Consider inline comments for .env files #272

Open crimsonvspurple opened 3 years ago

crimsonvspurple commented 3 years ago

Example:

SOMETHING = WHATEVER #THIS IS A COMMENT

It works like that in some other places and IDEs definitely highlight that part as comment but env-cmd considers the whole thing as value. Example: https://github.com/vlucas/phpdotenv#comments

Similar issue in dotenv: https://github.com/motdotla/dotenv/issues/484

sorenhoyer commented 3 months ago

This bug leaves a really bad first impression and should be prioritized.