소스 검색

added excluded char from filename

Gildas 7 년 전
부모
커밋
b116cf7ea5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      extension/core/bg/core.js

+ 1 - 1
extension/core/bg/core.js

@@ -141,7 +141,7 @@ singlefile.core = (() => {
 		const downloadInfo = {
 			url: page.url,
 			saveAs: options.confirmFilename,
-			filename: page.filename.replace(/[/\\?%*:|"<>]+/g, "_")
+			filename: page.filename.replace(/[/\\?%*:|"<>\x7F]+/g, "_")
 		};
 		if (options.incognito) {
 			downloadInfo.incognito = true;