parse-data-url icon indicating copy to clipboard operation
parse-data-url copied to clipboard

It doesn't support non-escaped URLs

Open fregante opened this issue 3 years ago • 2 comments

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 Screen Shot 13

fregante avatar Oct 01 '21 13:10 fregante

@fregante The regex of valid-data-url seems doesn't handle it correctly. I will fix it next week. Thanks.

killmenot avatar Oct 03 '21 08:10 killmenot

if anyone could do a PR for that I will be happy to merge

killmenot avatar Dec 30 '22 21:12 killmenot