Skip to content

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

Determines how the email address should be validated.

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.

Methods#

#html5? #

View source

#loose? #

View source

#pattern : ::Regex #

Returns the ::Regex pattern for self.

View source