couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [2/3] git commit: Tolerate whitespace runs in .ini files
Date Wed, 02 Nov 2011 15:42:57 GMT
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 <rnewson@apache.org>
Authored: Wed Nov 2 15:36:25 2011 +0000
Committer: Robert Newson <rnewson@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, _} ->


Mime
View raw message