From 60456186d75fecbd9b6519d932a737bd904ae6f0 Mon Sep 17 00:00:00 2001 From: indexzero Date: Thu, 20 Dec 2012 18:03:37 -0500 Subject: [PATCH] [fix] Fix for #65 --- lib/nconf/stores/memory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nconf/stores/memory.js b/lib/nconf/stores/memory.js index b53ac12..a74cc8f 100644 --- a/lib/nconf/stores/memory.js +++ b/lib/nconf/stores/memory.js @@ -42,7 +42,7 @@ Memory.prototype.get = function (key) { // while (path.length > 0) { key = path.shift(); - if (target && key in target) { + if (target && typeof target !== 'string' && key in target) { target = target[key]; continue; }