From 237bb7fd1a53597b37ddd3b4f877a61c48375268 Mon Sep 17 00:00:00 2001 From: mart_- Date: Fri, 1 Feb 2019 11:45:30 +0100 Subject: [PATCH] fix accent filename --- adm-zip.js | 1 + 1 file changed, 1 insertion(+) diff --git a/adm-zip.js b/adm-zip.js index bbfa058..0bc17ae 100644 --- a/adm-zip.js +++ b/adm-zip.js @@ -336,6 +336,7 @@ module.exports = function (/*String*/input) { i += 1; if (i < items.length) { var p = items[i].split("\\").join("/").replace(new RegExp(localPath.replace(/(\(|\))/g, '\\$1'), 'i'), ""); //windows fix + p = p.normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[^\x20-\x7E]/g, '') // accent fix if (filter(p)) { if (p.charAt(p.length - 1) !== "/") { fs.readFile(items[i], function (err, data) {