You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2011/11/02 16:42:57 UTC

[2/3] git commit: Tolerate whitespace runs in .ini files

Tolerate whitespace runs in .ini files

Previously we tolerated exactly one character of white space on
either side of the equals sign in .ini files. Now you can have lots.

CouchDB-1328


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/d6309435
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/d6309435
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/d6309435

Branch: refs/heads/1.2.x
Commit: d6309435670e38bb19ddd54265fdfd63935fa224
Parents: 805d450
Author: Robert Newson <rn...@apache.org>
Authored: Wed Nov 2 15:36:25 2011 +0000
Committer: Robert Newson <rn...@apache.org>
Committed: Wed Nov 2 15:41:56 2011 +0000

----------------------------------------------------------------------
 src/couchdb/couch_config.erl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/d6309435/src/couchdb/couch_config.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_config.erl b/src/couchdb/couch_config.erl
index 792ff5a..f669853 100644
--- a/src/couchdb/couch_config.erl
+++ b/src/couchdb/couch_config.erl
@@ -210,7 +210,7 @@ parse_ini_file(IniFile) ->
             ";" ++ _Comment ->
                 {AccSectionName, AccValues};
             Line2 ->
-                case re:split(Line2, "\s?=\s?", [{return, list}]) of
+                case re:split(Line2, "\s*=\s*", [{return, list}]) of
                 [Value] ->
                     MultiLineValuePart = case re:run(Line, "^ \\S", []) of
                     {match, _} ->