[Groonga-commit] droonga/express-droonga at bead948 [master] Ignore multiple slashes

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jun 25 18:40:13 JST 2014


YUKI Hiroshi	2014-06-25 18:40:13 +0900 (Wed, 25 Jun 2014)

  New Revision: bead9488b3aa62492a8744cecd35368524216c7e
  https://github.com/droonga/express-droonga/commit/bead9488b3aa62492a8744cecd35368524216c7e

  Message:
    Ignore multiple slashes

  Modified files:
    lib/adapter/api/droonga.js

  Modified: lib/adapter/api/droonga.js (+2 -2)
===================================================================
--- lib/adapter/api/droonga.js    2014-06-25 18:25:41 +0900 (bce2950)
+++ lib/adapter/api/droonga.js    2014-06-25 18:40:13 +0900 (4588d13)
@@ -3,8 +3,8 @@ var command = require('../command');
 function pathToMessageType(path) {
   return path
            .split('?')[0]
-           .replace(/\/$/, '')
-           .replace(/\//g, '.');
+           .replace(/\/+$/, '')
+           .replace(/\/+/g, '.');
 }
 
 module.exports = {
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index