Open hpello opened 3 years ago
Inconsistency with ruby dotenv
When the x variable is not defined, Numeric $x fields disappear, but alphabetical $x fields remain. In the case of $x, only the is swallowed. => It is not the same result with godotenv than with ruby's dotenv
godotenv
dotenv
.env
VARIABLE_0=$a$0$12$_x VARIABLE_1="$a$0$12$_x" VARIABLE_2='$a$0$12$_x' VARIABLE_3= $a$0$12$_x
# result of: godotenv env | grep VARIABLE VARIABLE_0=$ax VARIABLE_1=$ax VARIABLE_2=$a$0$12$_x VARIABLE_3=$ax
With ruby's dotenv:
# result of: dotenv env | grep VARIABLE VARIABLE_0= VARIABLE_1= VARIABLE_2=$a$0$12$_x VARIABLE_3=
What do you want to report?
Inconsistency with ruby dotenv
What version?
What do you observe?
When the x variable is not defined, Numeric $x fields disappear, but alphabetical $x fields remain. In the case of $x, only the is swallowed. => It is not the same result with
godotenv
than with ruby'sdotenv
What env file do you use?
.env
:What do you observe?
What is the expected result?
With ruby's dotenv: