-
Notifications
You must be signed in to change notification settings - Fork 97
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 host without protocol #40
Comments
I met this too. |
i judge protocol exists before parse:
hope it can help you . |
What does node's core (specifically, without a protocol, it's not actually a URL, so this might simply be user error) |
I have seen many cases of protocol less links such as //google.com which are annoying. Everyone should always just use SSL and https. This library does not correctly handle these links well but you can use regex to look for //. I may fork and update this package. |
Without // , http or https, it's not a domain.
|
@ameshkin this library matches what node’s core url module does, so if that one doesn’t do it, this one shouldn’t either. |
This library doesnt seem to parse the host properly when there isnt a protocol.
The text was updated successfully, but these errors were encountered: