Browse Source

128163 use import sanitize-filename

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

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

@@ -622,7 +622,6 @@ module.exports = (crowi) => {
 
     // replace forbidden characters to '_'
     // refer to https://kb.acronis.com/node/56475?ckattempt=1
-    const sanitize = require('sanitize-filename');
     let fileName = sanitize(path.basename(pagePath), { replacement: '_' });