parse-data-url
parse-data-url copied to clipboard
It doesn't support non-escaped URLs
This is one of the URLs listed on MDN: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
data:text/html,<script>alert('hi');</script>
And it just fails due to <
and the rest
@fregante The regex of valid-data-url seems doesn't handle it correctly. I will fix it next week. Thanks.
if anyone could do a PR for that I will be happy to merge