Swiftpack.co - evanrobertson/EmailValidator as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by evanrobertson.
evanrobertson/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
⭐️ 37
🕓 4 years ago
.package(url: "https://github.com/evanrobertson/EmailValidator.git", from: "1.0.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 protected]")

Other options

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

GitHub

link
Stars: 37
Last commit: 4 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1.0.3
4 years ago

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

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics