-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isMimeType: is not matching valid MIME types with an underscore #2119
Comments
pano9000
added a commit
to pano9000/validator.js
that referenced
this issue
Dec 6, 2022
in preparation for fixing validatorjs#2119
pano9000
added a commit
to pano9000/validator.js
that referenced
this issue
Dec 6, 2022
fixes a few valid MIME types not getting matched fixes validatorjs#2119
2 tasks
Did you test out the entire list with this repo? Maybe there are some other issues with it |
yes, while I was at it, I did run a complete test as well: |
pano9000
added a commit
to pano9000/validator.js
that referenced
this issue
Jan 28, 2023
in preparation for fixing validatorjs#2119
pano9000
added a commit
to pano9000/validator.js
that referenced
this issue
Jan 28, 2023
fixes a few valid MIME types not getting matched fixes validatorjs#2119
profnandaa
pushed a commit
that referenced
this issue
Jan 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
isMimeType is not matching valid MIME types that have an underscore in their name.
Examples
audio/ip-mr_v2.5
application/media_control+xml
are valid MIME types, but currently isMimeType will return
false
Full original IANA List of MIME Types can be found here, or take a look at the "extracted" list I created out of it, with just the MIME types to make it easier to copy/paste and test:
https://gist.github.com/pano9000/87919bee80b4fbc14b8b29a7dc9878cd
A PR to fix this will follow soon
The text was updated successfully, but these errors were encountered: