Cased.Sensitive.RegexHandler (cased v1.0.0)

A handler to mask strings by regular expression.

Examples

Create a handler using Cased.Sensitive.Handler.from_spec/1:

{Cased.Sensitive.RegexHandler, :username, ~r/@w+/}
|> Cased.Sensitive.Handler.from_spec()

The same, created manually:

Cased.Sensitive.RegexHandler.create(:username, ~r/@w+/)

Link to this section Summary

Link to this section Types

Specs

t() :: %Cased.Sensitive.RegexHandler{label: atom(), regex: Regex.t()}