Merge pull request #211 from vanjan/fix-env-ignore-case
Copy `process.env` before lower-casing the keys
This commit is contained in:
commit
0c5774fec7
1 changed files with 3 additions and 2 deletions
|
@ -60,8 +60,9 @@ Env.prototype.loadEnv = function () {
|
|||
var env = process.env;
|
||||
|
||||
if (this.lowerCase) {
|
||||
Object.keys(env).forEach(function (key) {
|
||||
env[key.toLowerCase()] = env[key];
|
||||
env = {};
|
||||
Object.keys(process.env).forEach(function (key) {
|
||||
env[key.toLowerCase()] = process.env[key];
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue