LivePhone.is_valid-question-mark

You're seeing just the function is_valid-question-mark, go back to LivePhone module for more information.

Specs

is_valid?(String.t()) :: boolean()

This is used to verify a given phone number and see if it is a valid number according to ExPhoneNumber.

Examples

iex> LivePhone.is_valid?("")
false

iex> LivePhone.is_valid?("+1555")
false

iex> LivePhone.is_valid?("+1555")
false

iex> LivePhone.is_valid?("+1 (555) 555-1234")
false

iex> LivePhone.is_valid?("+1 (555) 555-1234")
false

iex> LivePhone.is_valid?("+1 (650) 253-0000")
true

iex> LivePhone.is_valid?("+16502530000")
true