Переглянути джерело

Fix name start with https?

Sotaro KARASAWA 9 роки тому
батько
коміт
1c0ec5f8c6
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      lib/models/page.js

+ 1 - 1
lib/models/page.js

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