We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2118e4 commit f898c0aCopy full SHA for f898c0a
src/helpers/file.ts
@@ -46,7 +46,7 @@ export async function archiveExtract(filePath: string, dirPath: string) {
46
log('⚠️', 'Extracting files manually due to special characters in filenames');
47
const entries = zip.getEntries();
48
entries.forEach(entry => {
49
- const sanitizedName: string = entry.entryName.replace(/[<>:"|?*]/g, '_');
+ const sanitizedName: string = entry.entryName.replace(/[<>:"|?*]/g, '_').replace(/[\r\n]/g, '');
50
if (!entry.isDirectory) {
51
const outputPath = path.join(dirPath, sanitizedName);
52
dirCreate(path.dirname(outputPath));
0 commit comments