Normandy.Guardrails.Builtins.ForbiddenSubstrings (normandy v0.6.1)

View Source

Rejects strings containing any of the configured forbidden substrings.

Options

  • :terms (required) — list of strings to block. Must be a non-empty list.
  • :field (optional) — atom naming a field to extract from a struct or map before checking. If omitted, the value itself must be a string.
  • :case_sensitive (optional, default false) — when false, matching is done after downcasing both the value and the terms.

Returns one violation per matched term (not just the first), so callers can see the full set of offending phrases.