email_checker v0.1.1 EmailChecker.Check.Format

Check if a binary is formatted like an email.

Summary

Functions

Check a given emails format

Functions

valid?(email)
valid?(String.t) :: boolean

Check a given emails format

Parameters

  • email - binary - the email to check

Example

iex> EmailChecker.Check.Format.valid?("test@test.ch")
true

iex> EmailChecker.Check.Format.valid?("something")
false