-
-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supporting Escape Sequences #711
Comments
interestingly, the LINE regexp already does understand backslashed in front of single quote, double quote and backtick... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @motdotla and thank you for creating dotenv nodejs library 馃憤
Feature Request
Could dotenv nodejs library support escape sequences (e.g
\" \t
) ?At the minimum can it be aligned with the Ruby dotenv library?
Would a PR which aligns with the Ruby library be welcome?
Context
I've noticed some implementations of dotenv support character escapes and some do not.
Also there does not seem to be an official specification anywhere for dotenv.
This is causing issues when we need to use the same
.env
files in multiple runtimes.Is the Ruby library the original implementation and thus also used as the pseudo specification?
Examples of escape handling in different dotenv libraries
Ruby Library
$
\n
and\r
and only in double quoted strings.Elixir Library escaping specs
\t
and\f
Python Library
The text was updated successfully, but these errors were encountered: