-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Add data URL support #95
Conversation
Yes, but make sure it's a valid data URL according to the spec first: https://tools.ietf.org/html/rfc2397
I can't really think of more cases.
Would be useful to support |
Would be good to mention data URL support in the readme and index.d.ts. I don't think it's obvious. |
Not sure how do you want to do this, add an example? or explain |
This |
@sindresorhus ready to review |
Looks good :) |
I just found I might made a mistake, accounding to MSDN https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs#Common_problems data URL don't support query strings //cc @sindresorhus |
Would you be able to submit a PR with a fix? We should probably not do anything with the data part, so ignore all logic like query string, hash, path, etc. |
Yes, working on it |
fixes: #94 & #84
questions:
data:text/plain;charset=UTF-8;,foo
mentioned in Add support for data URLs #84, is not valid url accounding tovalid-data-url
, should I change Regex to loose strict one?file:
ftp:
etcIssueHunt Summary
Referenced issues
This pull request has been submitted to:
IssueHunt has been backed by the following sponsors. Become a sponsor