-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
isUrl validator returns false on "https://example.com?query", but true on "https://example.com/?query" #190
Comments
Based on what evidence / standard? |
I think there is no RFC or other standard for what URL is and you can find many opinions across the internet but browser and curl supports "url" with missing slash and I think it's quite widely used. |
There are actually multiple standards. |
I know there is one for URI (http://www.faqs.org/rfcs/rfc2396.html) where URL is mentioned but not precisely specified... anyway, I think if someone writes |
😞 RFC 2396 has been obsoleted by RFC 3986 which specifically allows for "path component to be empty". There is also a living URL standard by WHATWG which also allows for empty path. |
so should I create PR? |
Yes, that would be awesome. |
Hi,
I think in both cases it should return "true".
The text was updated successfully, but these errors were encountered: