couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [23/50] git commit: Move macro definition to module for appup sanity
Date Sat, 18 Jan 2014 00:47:48 GMT
Move macro definition to module for appup sanity

BugzID: 14553


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

Branch: refs/heads/import
Commit: 104418bba5a27bf3964ec37acad6eadf17e3c711
Parents: 9444cbe
Author: Adam Kocoloski <adam@cloudant.com>
Authored: Fri Aug 31 13:28:03 2012 -0400
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Fri Jan 17 16:44:30 2014 -0800

----------------------------------------------------------------------
 src/couch_db.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/104418bb/src/couch_db.erl
----------------------------------------------------------------------
diff --git a/src/couch_db.erl b/src/couch_db.erl
index daa96d8..3707108 100644
--- a/src/couch_db.erl
+++ b/src/couch_db.erl
@@ -33,6 +33,8 @@
 
 -include_lib("couch/include/couch_db.hrl").
 
+-define(VALID_DB_NAME, "^[a-z][a-z0-9\\_\\$()\\+\\-\\/]*$").
+
 start_link(DbName, Filepath, Options) ->
     case open_db_file(Filepath, Options) of
     {ok, Fd} ->


Mime
View raw message