Skip to content

Commit

Permalink
Support dbs with '/' (%2F) in the name.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmarino committed Oct 7, 2014
1 parent 66c3b45 commit 05d9f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 05d9f2b

Please sign in to comment.