Skip to content

Commit

Permalink
Fix parseValues option name
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Hamann committed Oct 22, 2017
1 parent 35088a3 commit b9c345b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/nconf/stores/env.js
Expand Up @@ -24,7 +24,7 @@ var Env = exports.Env = function (options) {
this.whitelist = options.whitelist || [];
this.separator = options.separator || '';
this.lowerCase = options.lowerCase || false;
this.parseJson = options.parseJson || false;
this.parseValues = options.parseValues || false;

if (({}).toString.call(options.match) === '[object RegExp]'
&& typeof options !== 'string') {
Expand Down Expand Up @@ -82,7 +82,7 @@ Env.prototype.loadEnv = function () {

var val = env[key];

if (self.parseJson) {
if (self.parseValues) {
val = common.parseValues(val);
}

Expand Down
2 changes: 1 addition & 1 deletion test/complete-test.js
Expand Up @@ -164,7 +164,7 @@ vows.describe('nconf/multiple-stores').addBatch({
topic: function () {
var that = this;
helpers.cp(complete, completeTest, function () {
nconf.env({ parseJson: true });
nconf.env({ parseValues: true });
that.callback();
});
},
Expand Down

0 comments on commit b9c345b

Please sign in to comment.