Skip to content

Add support for JMP#784

Merged
sindresorhus merged 3 commits intosindresorhus:mainfrom
kercsoj:jmp_support
Dec 23, 2025
Merged

Add support for JMP#784
sindresorhus merged 3 commits intosindresorhus:mainfrom
kercsoj:jmp_support

Conversation

@kercsoj
Copy link
Contributor

@kercsoj kercsoj commented Nov 28, 2025

This PR fixes an issue where JMP files were incorrectly identified as audio/mpeg by adding the proper magic byte sequence.

There is no publicly available official documentation for the JMP file format, so I contacted JMP Technical Support for guidance. The magic byte sequence and the recommended MIME type come from them. I also downloaded several JMP sample files from https://community.jmp.com/
from different years to verify that the implementation works correctly.

This PR fixes an issue where JMP files were incorrectly identified as audio/mpeg by adding the proper magic byte sequence.

There is no publicly available official documentation for the JMP file format, so I contacted JMP Technical Support for guidance. The magic byte sequence and the recommended MIME type come from them. I also downloaded several JMP sample files from https://community.jmp.com/
 from different years to verify that the implementation works correctly.
Copy link
Collaborator

@Borewit Borewit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sindresorhus sindresorhus merged commit 093dba0 into sindresorhus:main Dec 23, 2025
3 checks passed
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.

3 participants