node/test/fixtures/dotenv
HEESEUNG e6a0d77d57
util: fix parseEnv incorrectly splitting multiple ‘=‘ in value
Previously, parseEnv would create multiple environment
variables if a single line contained multiple ‘=‘ characters
(e.g. A=B=C would become { A: ‘B=C’, B: ‘C’ }).
This commit ensures that only the first ‘=‘ is used as
the key-value delimiter, and the rest of the line is treated
as the value.

Fixes: https://github.com/nodejs/node/issues/57411
PR-URL: https://github.com/nodejs/node/pull/57421
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2025-04-06 07:47:28 +00:00
..
.env src: add process.loadEnvFile and util.parseEnv 2024-01-23 18:46:26 +00:00
basic-valid.env src: add process.loadEnvFile and util.parseEnv 2024-01-23 18:46:26 +00:00
eof-without-value.env src: remove regex usage for env file parsing 2024-04-17 05:30:05 +00:00
lines-with-only-spaces.env src: improve node::Dotenv trimming 2025-02-11 22:26:51 +00:00
multiline.env src: remove regex usage for env file parsing 2024-04-17 05:30:05 +00:00
no-final-newline-single-quotes.env src: safely remove the last line from dotenv 2024-11-26 10:12:50 +00:00
no-final-newline.env src: safely remove the last line from dotenv 2024-11-26 10:12:50 +00:00
node-options-no-tranform.env src: add config file support 2025-02-20 23:07:42 +00:00
node-options.env src,lib: stabilize permission model 2024-12-12 12:11:58 +00:00
uv-threadpool.env test: improve UV_THREADPOOL_SIZE tests on .env 2023-11-03 17:25:54 +00:00
valid.env util: fix parseEnv incorrectly splitting multiple ‘=‘ in value 2025-04-06 07:47:28 +00:00