Skip to content

Commit

Permalink
Update uncompress_stream.js
Browse files Browse the repository at this point in the history
fix window file separator
  • Loading branch information
grj001 authored May 22, 2024
1 parent 7043a9c commit 64482e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zip/uncompress_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class ZipUncompressStream extends UncompressBaseStream {
}
}
// directory file names end with '/'
const type = /\/$/.test(entry.fileName) ? 'directory' : 'file';
const type = /[\\\/]$/.test(entry.fileName) ? 'directory' : 'file';
const name = entry.fileName = this[STRIP_NAME](entry.fileName, type);

const header = { name, type, yauzl: entry, mode };
Expand Down

0 comments on commit 64482e0

Please sign in to comment.