Skip to content

Commit

Permalink
fix macosx string
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Apr 29, 2024
1 parent ea3b5c4 commit 94dee21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report-viewer/src/model/fileHandling/ZipFileHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class ZipFileHandler extends FileHandler {
return jszip.loadAsync(file).then(async (zip) => {
for (const originalFileName of Object.keys(zip.files)) {
const unixFileName = slash(originalFileName)
if (/\/?(files)\//.test(unixFileName) && !/^__MACOSX\//.test(unixFileName)) {
if (/\/?(files)\//.test(unixFileName) && !/\/?__MACOSX\//.test(unixFileName)) {
const directoryPath = unixFileName.substring(0, unixFileName.lastIndexOf('/'))
const fileBase = unixFileName.substring(unixFileName.lastIndexOf('/') + 1)

Expand Down

0 comments on commit 94dee21

Please sign in to comment.