bkeepers / dotenv

A Ruby gem to load environment variables from `.env`.
MIT License
6.61k stars 505 forks source link

Fix template (-t) handling of multi-line variables #502

Closed maxjacobson closed 6 months ago

maxjacobson commented 7 months ago

I'm noticing that multi-line variables aren't properly templated. This input:

FOO=BAR
FOO2="BAR2
BAR2
BAR2
BAR2"
FOO3=BAR3

produces this output:

FOO=FOO
FOO2=FOO2
BAR2
BAR2
BAR2"
FOO3=FOO3

My expectation is that it would instead produce this output:

FOO=FOO
FOO2=FOO2
FOO3=FOO3
bkeepers commented 6 months ago

Thanks @maxjacobson