joho / godotenv

A Go port of Ruby's dotenv library (Loads environment variables from .env files)
http://godoc.org/github.com/joho/godotenv
MIT License
8.49k stars 405 forks source link

Add whitespace tests. #210

Closed cjyar closed 1 year ago

cjyar commented 1 year ago

I confused myself into thinking that godotenv wasn't handling whitespace properly, so I wrote these tests. It turns out, it was handling whitespace just fine, and the mistake was mine. It seems like this PR isn't necessary, but here it is anyway in case you want more tests.

joho commented 1 year ago

Thanks! I got bitten by some "undefined" behaviour from not enough tests in the last release so i'll definitely take these.