activevalidators
activevalidators copied to clipboard
Collection of ActiveModel/ActiveRecord validators
Warning: this allows a lot more URLs. There is not `valid?` method on `Addressable::URI`, because many strings can be parsed and considered valid. See https://github.com/twingly/twingly-url/issues/74#issuecomment-226334749 This change requires a minor...
The current URL validation relies on URI.parse, from the standard library, which only works with ASCII. The following valid URLs are therefore rejected: `'http://example.com/caractère-accentué'`, `'http://ουτοπία.δπθ.gr'`. The [Addressable](https://github.com/sporkmonger/addressable) gem correctly parses...
It is backward compatible with v3