-
Notifications
You must be signed in to change notification settings - Fork 192
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
Svg check for large files #103
Conversation
AnderbergE
commented
Jul 27, 2018
- Big svg files will not have a complete first chunk to check for end tag in the svg, hence it is not possible to use isSvg.
- Updated file-type to latest version to get more correct file types.
- New test for the more common svg file type. That starts with an xml version and doctype.
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.
Neat 👍
Argh, git is messing up the line endings making the size vary... Maybe just sip the size check at all for those two tests? |
Oh, of course, that's why I scratched my head about those failing tests. |
I removed the size test in my latest commit, how does it work on your end? |
20c5666
to
53f6290
Compare
* Big svg files will not have a complete first chunk to check for end tag in the svg, hence it is not possible to use isSvg. * Updated file-type to latest version to get more correct file types. * New test for the more common svg file type. That starts with an xml version and doctype.
Sorry for the delay on this... |
This was released as 🚢 2.9.1 |
No worries at all. I have been using my workaround and I appreciate the merge, good job! |