normalize_text

Function normalize_text 

Source
pub fn normalize_text(input: &str, home: &Path) -> String
Expand description

Normalize text for deterministic snapshots.

This strips ANSI escape codes, converts CRLF to LF, and replaces occurrences of the provided home path with <HOME>.