From 3e08bf3421a763644fdfa332b24adab48277b162 Mon Sep 17 00:00:00 2001 From: Daniel Kolakowski Date: Wed, 17 Sep 2014 20:01:58 +0200 Subject: [PATCH] Do not forget section on blank line Blank line resets current section which could not be desirable for larger .ini files where visual separation helps maintaing the file. --- lib/node-iniparser.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/node-iniparser.js b/lib/node-iniparser.js index 93397a3..c3c9807 100644 --- a/lib/node-iniparser.js +++ b/lib/node-iniparser.js @@ -56,8 +56,6 @@ function parse(data){ var match = line.match(regex.section); value[match[1]] = {}; section = match[1]; - }else if(line.length == 0 && section){ - section = null; }; }); return value;