enum Athena::Validator::Constraints::Email::Mode

Overview

Determines how the email address should be validated.

Defined in:

constraints/email.cr

Enum Members

Loose = 0

Validates the email against a simple ::Regex that allows all values with an @ symbol and a . in the host part of the email address.

HTML5 = 1

Validates the email against the HTML5 input pattern.

Instance Method Summary

Instance Method Detail

def html5? #

[View source]
def loose? #

[View source]
def pattern : ::Regex #

Returns the ::Regex pattern for self.


[View source]