Skip to main content

redact_sensitive_data

Function redact_sensitive_data 

Source
pub fn redact_sensitive_data(text: &str) -> String
Expand description

Redact sensitive data from text.

Each match is replaced with [REDACTED: <label>]. The function does not alter any characters outside matched spans.