perfectline / validates_url

URL Validation for Rails
MIT License
579 stars 114 forks source link

url without domain is valid #62

Closed grzegorz-jakubiak closed 7 years ago

grzegorz-jakubiak commented 7 years ago

When I type url like this: http://ssds validator says it is valid but it's not. There are no url like this, there is no http://google.

Hope you can fix it.

kritik commented 7 years ago

There can be url like "ssds". First example is localhost ;)

grzegorz-jakubiak commented 7 years ago

@kritik True I forgot about that ;) But is there a way to prevent user from entering url that doesn't make sense like 'sdsa'?

I've managed to do it I'm closing the issue.