EmailValidator

1.0.3

A simple (but correct) Swift library for validating email addresses. Supports mail addresses as defined in rfc5322 as well as the new Internationalized Mail Address standards (rfc653x). Based on https://github.com/jstedfast/EmailValidation
evanrobertson/EmailValidator

What's New

1.0.3

2020-02-18T02:51:52Z

Add Swift Package Mangager support. Thanks to @twodayslate for PR #3

EmailValidator

A simple (but correct) library for validating email addresses. Supports mail addresses as defined in rfc5322 as well as the new Internationalized Mail Address standards (rfc653x). Based on https://github.com/jstedfast/EmailValidation

Installation

Add to your Podfile pod 'EmailValidator'

Use

Basic

EmailValidator.validate("email@domain.com")

Other options

EmailValidator.validate(email: "email@domain.com",
                        allowTopLevelDomains: true,  // true/false, will allow top level domains
                        allowInternational: true)    // true/false, will allow international addresses (e.g cyrillic or chinese)

Description

  • Swift Tools 5.1.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Mar 25 2024 10:36:56 GMT-0900 (Hawaii-Aleutian Daylight Time)