Class: ProMotion::UrlValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/ProMotion/XLForm/validators/url_validator.rb

Class Method Summary collapse

Class Method Details

.validatorObject



3
4
5
# File 'lib/ProMotion/XLForm/validators/url_validator.rb', line 3

def self.validator
  ProMotion::RegexValidator.validator(NSLocalizedString("Invalid url", nil), /^https?:\/\/.*/)
end