shlok007 (Shlok Srivastava)
- Login: shlok007
- Email: shlok.srivastava15@gmail.com
- Registered on: 10/23/2016
- Last sign in: 10/24/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 0 | 1 |
Activity
10/24/2016
-
11:54 AM Ruby Feature #12867: Add ability to check validity of a URL
- Shyouhei Urabe wrote:
> Doesn't URI.parse work for you?
As URI.parse actually check for valid URIs and not URLs
I tried something like this:
~~~ ruby
URI.parse(some_string).scheme == "http"
~~~
But it returns true for inva...
10/23/2016
-
06:53 AM Ruby Feature #12867 (Open): Add ability to check validity of a URL
- Hi!
Going through the URI module of Ruby, it was obvious that we can check the validity of a URI by using URI.regexp . However, I found out there is no way we can accurately check for a valid URL by using the URI module. Won't it be bet...