Skip to main content

normalize_paths

Function normalize_paths 

pub fn normalize_paths(data: &str) -> String
Expand description

Normalize path separators

std::path::MAIN_SEPARATOR can vary by platform, so make it consistent

Note: this cannot distinguish between when a character is being used as a path separator or not and can “normalize” unrelated data