node-env-file
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -76,3 +76,3 @@ 'use strict'; | ||
if (!/^\s*\#/i.test(line)) { // ignore comment lines (starting with #). | ||
var key_value = line.match(/^([^=]+)\s*=\s*(.+)$/); | ||
var key_value = line.match(/^([^=]+)\s*=\s*(.*)$/); | ||
@@ -110,3 +110,3 @@ var env_key = key_value[1]; | ||
if (options.raise) { | ||
throw new TypeError("Environment file don't exist: " + env_file); | ||
throw new TypeError("Environment file doesn't exist: " + env_file); | ||
} else { | ||
@@ -113,0 +113,0 @@ if (options.verbose && module.exports.logger) { |
@@ -5,3 +5,3 @@ { | ||
"keywords": ["process", "env", "file", "files", ".env", "ENV", "process.env", "parse", "load", "export", "exports"], | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"homepage": "https://github.com/grimen/node-env-file", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -143,3 +143,3 @@ var helper = require('./helper'), | ||
expect(process.env.BAZ).to.be.equal(undefined); | ||
expect(process.env.QUX).to.be.equal(undefined); | ||
expect(process.env.QUX).to.be.equal(''); | ||
@@ -155,3 +155,3 @@ process.env.FOO = 'foo2'; | ||
expect(process.env.BAZ).to.be.equal(undefined); | ||
expect(process.env.QUX).to.be.equal(undefined); | ||
expect(process.env.QUX).to.be.equal(''); | ||
@@ -167,3 +167,3 @@ process.env.FOO = 'foo2'; | ||
expect(process.env.BAZ).to.be.equal(undefined); | ||
expect(process.env.QUX).to.be.equal(undefined); | ||
expect(process.env.QUX).to.be.equal(''); | ||
}, | ||
@@ -261,3 +261,3 @@ | ||
expect(process.env.BAZ).to.be.equal(undefined); | ||
expect(process.env.QUX).to.be.equal(undefined); | ||
expect(process.env.QUX).to.be.equal(''); | ||
@@ -273,3 +273,3 @@ process.env.FOO = 'foo2'; | ||
expect(process.env.BAZ).to.be.equal(undefined); | ||
expect(process.env.QUX).to.be.equal(undefined); | ||
expect(process.env.QUX).to.be.equal(''); | ||
@@ -285,3 +285,3 @@ process.env.FOO = 'foo2'; | ||
expect(process.env.BAZ).to.be.equal(undefined); | ||
expect(process.env.QUX).to.be.equal(undefined); | ||
expect(process.env.QUX).to.be.equal(''); | ||
}, | ||
@@ -288,0 +288,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20139