pub fn config_exclude_patterns() -> Arc<Vec<Regex>> ⓘExpand description
Compile the configured exclude_patterns (#718). Invalid regexes are
skipped — a broken exclude must never disable redaction.
#952: regex compilation — the expensive part of this call — used to run
on every redaction call (ctx_read, ctx_shell, ctx_execute all funnel
through redact_text_if_enabled) regardless of whether the config had
changed. Cached here, keyed on Arc::ptr_eq against the config Arc:
Config::load_arc returns the same Arc when the underlying config
content hash is unchanged, so a real config edit is exactly what
invalidates this cache too — no separate change-detection needed.