Browse Source

replace only the end of period

soumaeda 2 năm trước cách đây
mục cha
commit
9ea0fbf14c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      apps/app/src/server/routes/apiv3/page.js

+ 1 - 1
apps/app/src/server/routes/apiv3/page.js

@@ -619,7 +619,7 @@ module.exports = (crowi) => {
 
     const fileName = path.basename(pagePath)
       .replace(/[\\/:;"*?<>,」ˆ|]/g, '_')
-      .replace(/.$/, '_');
+      .replace(/\.$/, '_');
     let stream;
 
     try {