summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_config.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/couchdb/couch_config.erl b/src/couchdb/couch_config.erl
index 3270b3fd..5b93c4ec 100644
--- a/src/couchdb/couch_config.erl
+++ b/src/couchdb/couch_config.erl
@@ -193,10 +193,11 @@ parse_ini_file(IniFile) ->
{AccSectionName, AccValues};
{ok, [ValueName|LineValues]} -> % yeehaw, got a line!
RemainingLine = couch_util:implode(LineValues, "="),
+ % removes comments
{ok, [LineValue | _Rest]} =
- regexp:split(RemainingLine, " ;|\t;"), % removes comments
+ regexp:split(RemainingLine, " ;|\t;"),
{AccSectionName,
- [{{AccSectionName, ValueName}, LineValue} | AccValues]}
+ [{{AccSectionName, ValueName}, LineValue} | AccValues]}
end
end
end, {"", []}, Lines),