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

[3/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/1aee9418
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/1aee9418
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/1aee9418

Branch: refs/heads/1.1.x
Commit: 1aee94188056498d1708a42a7ee84640674f7e8d
Parents: 34dfda6
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:39:09 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/1aee9418/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, _} ->