email_checker v0.1.3 EmailChecker.Check.Format

Check if a binary is formatted like an email.

Link to this section Summary

Functions

Check a given emails format

Link to this section Functions

Link to this function

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