Conversation
Correct dataUriRegex to match mime types which contain '-', '+' or '.' such as 'svg+xml' or 'x-png'. Add emf content types to knownContentType to allow data uris with embedded emf files.
|
That's an amazing PR! Thanks for that submit. |
Restore ConfigureAwait(false)
|
|
Good catch, I didn't intend to make that change. Also I tried to make the requested change through GitHub directly, and now it is showing all lines as changed? Did GitHub just redo all the line endings or something? This is my first time submitting a pull request through GitHub. |
|
Yes, I think it messed up with the line ending. I define a |



The regex for matching data URIs was only matching MIME types consisting of word characters which means data URIs with valid MIME types like 'svg+xml' would be rejected. Looking at the list of registered mime types (https://www.iana.org/assignments/media-types/media-types.xhtml) I determined that the regex should also match
.,-, and+.Also I had some data URIs with embedded .emf files so I updated
knownContentTypeto allow .emf files.