-
-
Notifications
You must be signed in to change notification settings - Fork 326
chore: Pass invalidate type #320
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/upload/DJNcMkXmUrZxoxUy8LBJbTK2yZqY |
Codecov Report
@@ Coverage Diff @@
## master #320 +/- ##
==========================================
+ Coverage 84.48% 84.80% +0.31%
==========================================
Files 6 6
Lines 245 250 +5
Branches 58 60 +2
==========================================
+ Hits 207 212 +5
Misses 38 38
Continue to review full report at Codecov.
|
return mimeType === validType; | ||
|
||
// Full match | ||
if (mimeType === validType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
想到一个问题,如果用户写成 image/jpg
是不是匹配不到 jpg 图?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯,不过如果都写 image/xxx
了。这个应该就按照标准的来了。
发个 minor 版本
ref ant-design/ant-design#30403