Skip to content

Commit

Permalink
fix accent filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Calion54 committed Feb 1, 2019
1 parent 20c9cb8 commit 237bb7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adm-zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 237bb7f

Please sign in to comment.