Skip to content
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

fix(isMimeType): Fix MIME Types with underscores not getting matched #2120

Merged
merged 2 commits into from
Jan 29, 2023

Conversation

pano9000
Copy link
Contributor

@pano9000 pano9000 commented Dec 6, 2022

Add _ (underscore) to the mimeTypeSimple RegExp to fix valid MIME types not getting matched.
Kindly check #2119 for more details

This fixes #2119

Checklist

  • PR contains only changes related; no stray files, etc.
  • [ ] README updated (where applicable)
  • Tests written (where applicable)

@codecov
Copy link

codecov bot commented Dec 6, 2022

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (c1e7fd8) compared to base (f97e8d4).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2120   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          105       105           
  Lines         2335      2335           
  Branches       586       586           
=========================================
  Hits          2335      2335           
Impacted Files Coverage Δ
src/lib/isMimeType.js 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

WikiRik
WikiRik previously approved these changes Dec 6, 2022
braaar
braaar previously approved these changes Dec 7, 2022
songyuew
songyuew previously approved these changes Jan 5, 2023
rubiin
rubiin previously approved these changes Jan 23, 2023
@profnandaa profnandaa added the mc-to-land Just merge-conflict standing between the PR and landing. label Jan 28, 2023
fixes a few valid MIME types not getting matched

fixes validatorjs#2119
@pano9000 pano9000 dismissed stale reviews from rubiin, songyuew, braaar, and WikiRik via c1e7fd8 January 28, 2023 23:18
@pano9000 pano9000 force-pushed the fix_isMimeType_#2119 branch from f8b4812 to c1e7fd8 Compare January 28, 2023 23:18
@rubiin rubiin removed the mc-to-land Just merge-conflict standing between the PR and landing. label Jan 29, 2023
Copy link
Member

@profnandaa profnandaa left a comment

Choose a reason for hiding this comment

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

LGMT

@profnandaa profnandaa merged commit c332e5c into validatorjs:master Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

isMimeType: is not matching valid MIME types with an underscore
6 participants