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 2013/06/29 17:17:51 UTC

[10/50] [abbrv] git commit: updated refs/heads/1843-feature-bigcouch to cba2e81

Allow literal dot in config section names

BugzID: 15952


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

Branch: refs/heads/1843-feature-bigcouch
Commit: 24f77c00508611dfb59f024faed5278cf30a66da
Parents: 79dd3a9
Author: Robert Newson <ro...@cloudant.com>
Authored: Wed Dec 5 15:35:46 2012 +0000
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Wed Mar 20 06:02:51 2013 -0500

----------------------------------------------------------------------
 src/config/src/config_writer.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/24f77c00/src/config/src/config_writer.erl
----------------------------------------------------------------------
diff --git a/src/config/src/config_writer.erl b/src/config/src/config_writer.erl
index 82a2ba2..2812686 100644
--- a/src/config/src/config_writer.erl
+++ b/src/config/src/config_writer.erl
@@ -31,7 +31,7 @@ save_to_file({{Section, Key}, Value}, File) ->
     Lines = re:split(OldFileContents, "\r\n|\n|\r|\032", [{return, list}]),
 
     SectionLine = "[" ++ Section ++ "]",
-    {ok, Pattern} = re:compile(["^(", Key, "\\s*=)|\\[[a-zA-Z0-9\_-]*\\]"]),
+    {ok, Pattern} = re:compile(["^(", Key, "\\s*=)|\\[[a-zA-Z0-9\.\_-]*\\]"]),
 
     NewLines = process_file_lines(Lines, [], SectionLine, Pattern, Key, Value),
     NewFileContents = reverse_and_add_newline(strip_empty_lines(NewLines), []),