pub fn redact_user_paths(text: &str) -> StringExpand description
text with every path inside a person’s own folder replaced, since those
paths usually carry the person’s name. A path can have spaces, so what follows
goes up to the end of the line or a quote or list separator: too much hidden is
better than a surname left behind.
use ravenrs_core::redact_user_paths;
let text = "Overrides: VK_DRIVER_FILES=/home/ana/icd.json\nGPU: Intel";
assert_eq!(redact_user_paths(text), "Overrides: VK_DRIVER_FILES=<user folder>\nGPU: Intel");