Module: ValidatesAsEmailAddress::RFC822
- Defined in:
- lib/validates_as_email_address/rfc_822.rb
Overview
The standard describing the format of email addresses
Constant Summary collapse
- EmailAddress =
Matches email addresses according to the RFC822 standard
begin local_part = LocalPart.source domain = Domain.source addr_spec = "(#{local_part})\\x40(#{domain})" addr_spec.force_encoding('binary') if addr_spec.respond_to?(:force_encoding) /\A#{addr_spec}\z/ end