You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/02/05 00:06:25 UTC

[12/50] couch commit: updated refs/heads/import to c3116d7

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

Branch: refs/heads/import
Commit: ee7998df5a394ad3cbfe82b621c24792de40b464
Parents: ea800ea
Author: Adam Kocoloski <ad...@cloudant.com>
Authored: Fri Aug 31 13:28:03 2012 -0400
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Tue Feb 4 17:03:23 2014 -0600

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/ee7998df/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} ->