Преглед на файлове

replace only the end of period

soumaeda преди 2 години
родител
ревизия
9ea0fbf14c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 {