diff --git a/db.js b/db.js index d4983bd..00d3e55 100644 --- a/db.js +++ b/db.js @@ -167,7 +167,7 @@ exports.guessCurrent = function (loc) { * http://wiki.apache.org/couchdb/HTTP_database_API */ - var re = /\/([a-z][a-z0-9_\$\(\)\+-\/]*)\/_design\/([^\/]+)\//; + var re = /\/(([a-z][a-z0-9_\$\(\)\+-\/]|(?:%2F))*)\/_design\/([^\/]+)\//; var match = re.exec(loc.pathname); if (match) {