Selaa lähdekoodia

replace only the end of period

soumaeda 2 vuotta sitten
vanhempi
sitoutus
9ea0fbf14c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 {