tricycle/elm-email/1.0.2

NOTE: the latest version is 1.0.4

Renamed to bellroy/elm-email. It is published under that name, and new versions come out there.

Versions published as tricycle/elm-email still install under that name. 4 versions of 5 come from the new location (see their notes). 1 version could not be recovered and cannot be installed.

Rerouted (fork, verified). The original repository is gone. This copy comes from a fork that still has the tag. The Lamdera package server serves a copy recovered from https://github.com/robmagary/elm-email (a fork).

What we checked: Rebuilt with git archive from commit 940011bbd8fd of https://github.com/robmagary/elm-email (a fork) (zip prefix tricycle-elm-email-6e79d5c/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 cd78e6a105e82f411801341c48ca4bba4310505a.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/tricycle/elm-email/zipball/1.0.2/

elm-email

Parses email addresses safely

Motivation

Validating email addresses using Regex is a pain.

So far I personally have never found the one Regex to rule them all.

Having the ability to parse email addresses from String not only means they are validated, but also adds the ability to then add your own additional validations on parts of the email address that might be specific to your application or such.

example

import Email

parsedEmail: Maybe Email
parsedEmail =
    Email.fromString "[email protected]"

-- Result

  Just
    { localPart = "simple"
    , tags = [ "tag" ]
    , domain = "example"
    , tld = [ "com", "au"]
    }