mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
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>
|
||
|---|---|---|
| .. | ||
| .env | ||
| basic-valid.env | ||
| eof-without-value.env | ||
| lines-with-only-spaces.env | ||
| multiline.env | ||
| no-final-newline-single-quotes.env | ||
| no-final-newline.env | ||
| node-options-no-tranform.env | ||
| node-options.env | ||
| uv-threadpool.env | ||
| valid.env | ||