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

Commit 2707e9f

Browse files
author
Takumasa Sakao
committed
Fix test, $ should not be escaped
1 parent 50c2965 commit 2707e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godotenv_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ func TestWrite(t *testing.T) {
361361
//but single quotes are left alone
362362
writeAndCompare(`key=va'lu'e`, `key="va'lu'e"`)
363363
// newlines, backslashes, and some other special chars are escaped
364-
writeAndCompare(`foo="$ba\n\r\\r!"`, `foo="\$ba\n\r\\r\!"`)
364+
writeAndCompare(`foo="\n\r\\r!"`, `foo="\n\r\\r\!"`)
365365
// lines should be sorted
366366
writeAndCompare("foo=bar\nbaz=buzz", "baz=\"buzz\"\nfoo=\"bar\"")
367367

0 commit comments

Comments
 (0)