node/test/fixtures/dotenv/lines-with-only-spaces.env
Dario Piotrowicz 43ffcf1d2e
src: improve node::Dotenv trimming
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>
2025-02-11 22:26:51 +00:00

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'