You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
isDataURI will return false for MIME types, that have an underscore in them
Same issue as #2119
Examples
(bit of a faux example, as the base64 part is not really a "real" application/media_control+xml type file, but that is beyond the point here, as we only care for the MIME type part here)
…2122)
* test(isDataURI): add test case with an underscore in MIME type
preparation for fixing #2121
* fix(isDataURI): add underscore to RegExp
also match valid MIME types with an underscore in their name
fixes#2121
Describe the bug
isDataURI will return false for MIME types, that have an underscore in them
Same issue as #2119
Examples
(bit of a faux example, as the base64 part is not really a "real"
application/media_control+xml
type file, but that is beyond the point here, as we only care for the MIME type part here)should return
true
, but currently returnsfalse
I'll send a PR to fix this in a few moments
The text was updated successfully, but these errors were encountered: