@@ -3021,7 +3021,7 @@
// 已页面标题作为新建文件夹,保留前50个字
let title = await page.title();
if(title){
- title = title.substring(0, 50);
+ title = title.substring(0, 50).trim();
if(this.containsAnyChar(title, ['\\', '/', ':', '*', '?', '"', '<', '>', '|'])){ //判断是否含有特殊字符
title = title.replace(/[\\|/|:|*|?|"|<|>||]/g, "");
}