-
Notifications
You must be signed in to change notification settings - Fork 42
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
host + port is recognised as protocol #70
Comments
How do you think about solution? Technically something like |
Hello, Probably the correct way of detecting protocols would be to get that from IANA list but the issue is that there are lot of unknown protocols. https://en.m.wikipedia.org/wiki/List_of_URI_schemes
Thanks! |
Good point about We could try to have a smart regex that detects |
this is valid urn protocol, but not uri, maybe we can allow user to specific uri or urn in tested with new URI('localhost:3000').protocol()
// 'localhost' |
This kind of input is basically host ( |
The text was updated successfully, but these errors were encountered: