Merge pull request #3 from cloudant/15952-allow-dots

Allow literal dot in config section names
diff --git a/src/config_writer.erl b/src/config_writer.erl
index 82a2ba2..2812686 100644
--- a/src/config_writer.erl
+++ b/src/config_writer.erl
@@ -31,7 +31,7 @@
     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), []),