-
Notifications
You must be signed in to change notification settings - Fork 476
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
Parsing urls with missing protocol #187
Comments
That will not be really possible since There have been discussions before of adding heuristics for such behaviour but it's generally very messy to operate on invalid input :( |
This behavior has caused confusion in the past and I fully expect this to raise more issues in the future. Welcome to the weird world of string semantics… According to RFC 3986 the string |
Hi, I've just used URI.js for the first time and I was excited:
However, if I try it on a url where the protocol part is missing, everything gets messed up:
Could we do support for parsing urls where the protocol part is missing? I think they come up pretty often.. Should I pull-request that? Or is it intetionally left out? Thanks!
The text was updated successfully, but these errors were encountered: