Explorar el Código

Modify regexp pattern

Norio Suzuki hace 9 años
padre
commit
a37036d6fe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/models/page.js

+ 1 - 1
lib/models/page.js

@@ -383,7 +383,7 @@ module.exports = function(crowi) {
       /^\/_r\/.*/,
       /^\/user\/[^\/]+\/(bookmarks|comments|activities|pages|recent-create|recent-edit)/, // reserved
       /^\/?https?:\/\/.+$/, // avoid miss in renaming
-      /.*\/\/.*/,           // avoid miss in renaming
+      /\/{2,}/,             // avoid miss in renaming
       /.+\/edit$/,
       /.+\.md$/,
       /^\/(installer|register|login|logout|admin|me|files|trash|paste|comments)(\/.*|$)/,