Skip to content

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

Determines how the email address should be validated.

Members#

HTML5 = 0#

Validates the email against the HTML5 input pattern, but requires a TLD to be present.

HTML5_ALLOW_NO_TLD = 1#

Same as HTML5, but follows the pattern exactly, allowing there to be no TLD.

Methods#

#html5?#

View source

#html5_allow_no_tld?#

View source

#pattern : ::Regex#

Returns the ::Regex pattern for self.

View source