EmailChecker.Check.Format (email_checker v0.2.2)

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

Specs

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