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
⭐️ 35
🕓 1 year 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@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)

GitHub

link
Stars: 35
Last commit: 1 year ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1.0.3
1 year ago

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

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