Skip to main content

redact_keyword_password

Function redact_keyword_password 

Source
fn redact_keyword_password(s: &str) -> String
Expand description

Redacts password values in a keyword string. A standalone, case-insensitive password assignment outside a recognized keyword boundary causes the whole string to be redacted, since another option’s value may otherwise retain it. Keys are separated by Unicode whitespace; a value is single/double quoted or runs to the next unescaped whitespace, with \ escaping the next character.