diff --git a/src/dotenv.js b/src/dotenv.js index cf3d4d3863..b55aabd86e 100644 --- a/src/dotenv.js +++ b/src/dotenv.js @@ -24,7 +24,7 @@ async function parseDotenv(filePath) { for await (const line of rl) { if (line.startsWith('#')) continue; - const [key, value] = line.split('=', 2); + const [key, value] = line.split(/=(.+)/, 2); env[key.trimEnd()] = value.trimStart(); }