We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3150d4 commit fdef1cdCopy full SHA for fdef1cd
columnArticleList.js
@@ -56,8 +56,8 @@ const downloadComment = require('./downloadComment.js');
56
articleInfo.commentsTotal = commentsTotal;
57
articleInfo.commentsArr = commentsArr;
58
};
59
- // 替换文章名称的 / 线, 解决路径被分割的问题
60
- let useArticleTtle = columnArticle.article_title.replace(/\//g, '-');
+ // 替换非法文件名
+ let useArticleTtle = columnArticle.article_title.replace(/[\/:*?"<>|]/g, '-');
61
//生成PDF
62
await generaterPdf(articleInfo,
63
useArticleTtle + '.pdf',
0 commit comments