perfectline / validates_url

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

Fix no_local regression when host nil #69

Closed zapo closed 5 years ago

zapo commented 5 years ago

This fixes a regression introduced by #35 when host is nil for no_local validation.

I benefited from that to add a regression test and refactor slightly the validation code to be a bit dryer.