Kemal::FormValidator::Email
Inherits Kemal::FormValidator::Validator / Reference / Object
Kemal::FormValidator::Email validates that the input is a valid email.
The regex pattern used to validate the email is a non-strict pattern meaning that
it only catches common typo errors. However, it is possible to specify another, more strict,
pattern if needed.
Kemal::FormValidator::Email.new
Kemal::FormValidator::Email.new(/custom-validation-pattern/)
Constructors
Instance methods
validate(field : Kemal::Form::Field)
Source