Xema.Format.is-question-mark

You're seeing just the function is-question-mark, go back to Xema.Format module for more information.

Specs

is?(format(), String.t()) :: boolean()

Checks if the value matches the given type. The function expected a available format and a string to check. Returns true for a valid string, false otherwise.

Examples

iex> Xema.Format.is?(:email, "foo@bar.net")
true
iex> Xema.Format.is?(:email, "foo.bar.net")
false