Skip to content
Browse files

Merge pull request #2 from PhilHannent/master

Fix processing multiple ini files by resetting the current section at…
  • Loading branch information...
2 parents 1cf8aab + 654b576 commit 5a0260578ae48aba874a59529b1685d4e9bcfb18 @PastorBones committed Oct 14, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 node-ini.js
View
2 node-ini.js
@@ -23,7 +23,6 @@ var INI = function(){
};
self.encoding = 'utf-8'
- self.curSection = {}
var addParam = function(pType, cfg, match){
switch(self.curSection.type){
@@ -95,6 +94,7 @@ var INI = function(){
var parse = function(data){
var lines = data.split(/\r\n|\r|\n/)
, cfg = {};
+ self.curSection = {}
lines.forEach(function(line){
// Check for comments

0 comments on commit 5a02605

Please sign in to comment.
Something went wrong with that request. Please try again.