couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject git commit: updated refs/heads/ENCODE-EVERYTHING to 204ca74
Date Sat, 21 Dec 2013 00:46:40 GMT
Updated Branches:
  refs/heads/ENCODE-EVERYTHING 01258aa0c -> 204ca74f3


fixed the regex for sniffing for design docs


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

Branch: refs/heads/ENCODE-EVERYTHING
Commit: 204ca74f34360d303464a61260ea3719995cf98e
Parents: 01258aa
Author: suelockwood <deathbear@apache.org>
Authored: Fri Dec 20 19:46:28 2013 -0500
Committer: suelockwood <deathbear@apache.org>
Committed: Fri Dec 20 19:46:28 2013 -0500

----------------------------------------------------------------------
 src/fauxton/app/modules/documents/views.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/204ca74f/src/fauxton/app/modules/documents/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js
index e7c67d1..14d93e7 100644
--- a/src/fauxton/app/modules/documents/views.js
+++ b/src/fauxton/app/modules/documents/views.js
@@ -1715,7 +1715,7 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
resizeColum
 
       this.collection.each(function(design) {
         if (design.has('doc')){
-          var ddoc = design.id.replace(/_design\//,"");
+          var ddoc = design.id.replace(/^_design\//,"");
           if (design.get('doc').views){
             this.buildIndexList(design.get('doc').views, "views", ddoc);
           }


Mime
View raw message