elixir-toniq / vapor

Runtime configuration system for Elixir
MIT License
596 stars 37 forks source link

Ignore comment lines in ".env" files #41

Closed pmeinhardt closed 5 years ago

pmeinhardt commented 5 years ago

Make the Dotenv provider ignore lines that are commented out via #.

Example (as per the added test)

# This is a comment
FOO=foo
# BAR=bar

Before

This would create two key-value pairs:

  1. "FOO" => "foo"
  2. "# BAR" => "bar"

Now

Creates one pair: "FOO" => "foo"

Thanks for your ElixirConf talk by the way 🙂👋