Scrutinex.Checks.Format (Scrutinex v0.2.0)

Copy Markdown View Source

Validates that a string value matches a regular expression.

Summary

Functions

Returns :ok if value matches regex, otherwise an error.

Functions

run(value, regex)

@spec run(String.t(), Regex.t()) :: :ok | {:error, String.t(), map()}

Returns :ok if value matches regex, otherwise an error.