From f3683b4e5ff7416d3354c237933ff6cb65b8b74e Mon Sep 17 00:00:00 2001 From: Paul Joseph Davis Date: Thu, 25 Jun 2009 05:04:27 +0000 Subject: Of course some of them were 8 space tabs. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@788261 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_config.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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), -- cgit v1.2.3