Fix parseValues
option name
This commit is contained in:
parent
35088a3313
commit
b9c345bf96
2 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ var Env = exports.Env = function (options) {
|
||||||
this.whitelist = options.whitelist || [];
|
this.whitelist = options.whitelist || [];
|
||||||
this.separator = options.separator || '';
|
this.separator = options.separator || '';
|
||||||
this.lowerCase = options.lowerCase || false;
|
this.lowerCase = options.lowerCase || false;
|
||||||
this.parseJson = options.parseJson || false;
|
this.parseValues = options.parseValues || false;
|
||||||
|
|
||||||
if (({}).toString.call(options.match) === '[object RegExp]'
|
if (({}).toString.call(options.match) === '[object RegExp]'
|
||||||
&& typeof options !== 'string') {
|
&& typeof options !== 'string') {
|
||||||
|
@ -82,7 +82,7 @@ Env.prototype.loadEnv = function () {
|
||||||
|
|
||||||
var val = env[key];
|
var val = env[key];
|
||||||
|
|
||||||
if (self.parseJson) {
|
if (self.parseValues) {
|
||||||
val = common.parseValues(val);
|
val = common.parseValues(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ vows.describe('nconf/multiple-stores').addBatch({
|
||||||
topic: function () {
|
topic: function () {
|
||||||
var that = this;
|
var that = this;
|
||||||
helpers.cp(complete, completeTest, function () {
|
helpers.cp(complete, completeTest, function () {
|
||||||
nconf.env({ parseJson: true });
|
nconf.env({ parseValues: true });
|
||||||
that.callback();
|
that.callback();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue