Navigation Menu

Skip to content

Commit

Permalink
Ignore multiple slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 25, 2014
1 parent 47ffa6a commit bead948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/adapter/api/droonga.js
Expand Up @@ -3,8 +3,8 @@ var command = require('../command');
function pathToMessageType(path) {
return path
.split('?')[0]
.replace(/\/$/, '')
.replace(/\//g, '.');
.replace(/\/+$/, '')
.replace(/\/+/g, '.');
}

module.exports = {
Expand Down

0 comments on commit bead948

Please sign in to comment.