Skip to content

Replace MSI detection with Microsoft CFB#388

Merged
sindresorhus merged 7 commits intomasterfrom
ms-cfb
Aug 26, 2020
Merged

Replace MSI detection with Microsoft CFB#388
sindresorhus merged 7 commits intomasterfrom
ms-cfb

Conversation

@Borewit
Copy link
Collaborator

@Borewit Borewit commented Aug 24, 2020

Replace MSI detections with Microsoft CFB.

Fix #377: Microsoft CFB maps to .msi. .msi is CFB based, but some other file types as well.

Microsoft CFB is identified as:

{
  ext: cfb,
  mime: 'application/x-msi'
}

Related: #387, the present fixtures did not test positive on Microsoft CFB.

Fix #387, remove false false positive tests.

@Borewit Borewit self-assigned this Aug 24, 2020
@niftylettuce
Copy link

You can use this sample doc for CFB: https://github.com/spamscanner/spamscanner/blob/master/test/fixtures/sample.doc

@Borewit Borewit requested a review from sindresorhus August 25, 2020 08:46
@sindresorhus sindresorhus changed the title Replace MSI detections with Microsoft CFB Replace MSI detection with Microsoft CFB Aug 26, 2020
@sindresorhus sindresorhus merged commit 5de41fd into master Aug 26, 2020
@sindresorhus sindresorhus deleted the ms-cfb branch August 26, 2020 00:35
@niftylettuce
Copy link

@sindresorhus can you release a new version to npm? many thanks as always ❤️ 🙇 👏 🎉

thank you @Borewit

@sindresorhus
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positives test are broken Document expected return values of unsupported file types

3 participants