node/test/fixtures/dotenv
HEESEUNG 8a29f13bec
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-08-27 19:20:40 +02:00
..
.env src: add process.loadEnvFile and util.parseEnv 2024-03-25 19:25:01 +00:00
basic-valid.env src: add process.loadEnvFile and util.parseEnv 2024-03-25 19:25:01 +00:00
eof-without-value.env src: remove regex usage for env file parsing 2024-05-03 08:30:32 +02:00
multiline.env src: remove regex usage for env file parsing 2024-05-03 08:30:32 +02:00
no-final-newline-single-quotes.env src: safely remove the last line from dotenv 2025-03-06 13:38:02 +01:00
no-final-newline.env src: safely remove the last line from dotenv 2025-03-06 13:38:02 +01:00
node-options.env src: support multiple --env-file declarations 2023-09-11 12:41:19 +00:00
uv-threadpool.env test: improve UV_THREADPOOL_SIZE tests on .env 2023-12-11 11:12:27 +00:00
valid.env util: fix parseEnv incorrectly splitting multiple ‘=‘ in value 2025-08-27 19:20:40 +02:00