Commit Graph

8 Commits (cc9e9b7de7cabb89c4619f757a44883860c285c2)

Author SHA1 Message Date
John Barton cc9e9b7de7
Multiline string support (#156)
* 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>
2023-01-27 13:14:16 +11:00
2tef 0f21d20acb
fix tiny details (#199)
* remove empty line

* remove unnecessary assignments

following commit 2ed25fcb28.
2023-01-27 13:01:43 +11:00
Takumasa Sakao 33977c2d8d Add test for substitutions 2017-11-20 23:20:19 +09:00
John Barton (joho) 05be8ccbf7 Try and replicate reported bug #45 2017-11-10 10:38:18 +11:00
Oenning a42a65518c allow empty_var 2017-03-22 13:05:44 +00:00
Martin Milata 861984c215 Don't hide line parsing errors 2016-12-12 14:43:30 +01:00
Yannick Schutz 7e3e1e2c6c Use SplitN instead of split 2014-03-07 23:21:31 +01:00
John Barton (joho) 78ba83b776 First failing tests extracted from dotenv 2013-07-30 11:46:52 +10:00