Explorar el Código

added excluded char from filename

Gildas hace 7 años
padre
commit
b116cf7ea5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;