mirror of
https://github.com/joho/godotenv.git
synced 2025-09-14 16:12:39 +00:00
* refactor dotenv parser in order to support multi-line variable values declaration Signed-off-by: x1unix <denis0051@gmail.com> * Add multi-line var values test case and update comment test Signed-off-by: x1unix <denis0051@gmail.com> * Expand fixture tests to include multiline strings * Update go versions to test against * Switch to GOINSECURE for power8 CI task * When tests fail, show source version of string (inc special chars) * Update parser.go Co-authored-by: Austin Sasko <austintyler0239@yahoo.com> * Fix up bad merge * Add a full fixture for comments for extra piece of mind * Fix up some lint/staticcheck recommendations * Test against go 1.19 too Signed-off-by: x1unix <denis0051@gmail.com> Co-authored-by: x1unix <denis0051@gmail.com> Co-authored-by: Austin Sasko <austintyler0239@yahoo.com>
20 lines
284 B
Bash
20 lines
284 B
Bash
OPTION_A='1'
|
|
OPTION_B='2'
|
|
OPTION_C=''
|
|
OPTION_D='\n'
|
|
OPTION_E="1"
|
|
OPTION_F="2"
|
|
OPTION_G=""
|
|
OPTION_H="\n"
|
|
OPTION_I = "echo 'asd'"
|
|
OPTION_J='line 1
|
|
line 2'
|
|
OPTION_K='line one
|
|
this is \'quoted\'
|
|
one more line'
|
|
OPTION_L="line 1
|
|
line 2"
|
|
OPTION_M="line one
|
|
this is \"quoted\"
|
|
one more line"
|