PhoenixReplay.Redactor.Patterns (PhoenixReplay v0.6.2)

Copy Markdown View Source

Replaces matches of regexes with "[REDACTED]".

This is the redactor behind a list of patterns in :redact:

config :phoenix_replay,
  redact: [~r/\b\d{13,19}\b/, ~r/[\w.+-]+@[\w-]+\.[\w.]+/]

Patterns can be given as strings, which is convenient in releases. With no patterns, recordings are stored as the sanitizer left them.

Options

  • :patterns — compiled regexes (required)