the trimming functionality that the dotenv parsing uses currently
only takes into consideration plain spaces (' '), other type of
space characters such as tabs and newlines are not trimmed, this
can cause subtle bugs, so the changes here make sure that such
characters get trimmed as well
Co-authored-by: Yagiz Nizipli <yagiz@nizipli.com>
PR-URL: https://github.com/nodejs/node/pull/56983
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
8 lines
236 B
Bash
8 lines
236 B
Bash
|
|
EMPTY_LINE='value after an empty line'
|
|
|
|
SPACES_LINE='value after a line with just some spaces'
|
|
|
|
TABS_LINE='value after a line with just some tabs'
|
|
|
|
SPACES_TABS_LINE='value after a line with just some spaces and tabs'
|