Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Commit 6d367c1

Browse files
authored
Merge pull request joho#46 from joho/fix_quoting_parser_bug
WIP Parsing bug with nested quotes
2 parents 0f92a24 + 05be8cc commit 6d367c1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

fixtures/quoted.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ OPTION_E="1"
66
OPTION_F="2"
77
OPTION_G=""
88
OPTION_H="\n"
9+
OPTION_I = "echo 'asd'"

godotenv_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ func TestLoadQuotedEnv(t *testing.T) {
187187
"OPTION_F": "2",
188188
"OPTION_G": "",
189189
"OPTION_H": "\n",
190+
"OPTION_I": "echo 'asd'",
190191
}
191192

192193
loadEnvAndCompareValues(t, Load, envFileName, expectedValues, noopPresets)

0 commit comments

Comments
 (0)