Skip to main content

normalise_extensions

Function normalise_extensions 

Source
pub fn normalise_extensions(raw: Vec<String>) -> Vec<String>
Expand description

Normalise a declared extension: lowercase, leading dots stripped, blanks dropped. A guest writing ".ORG" and a guest writing "org" mean the same filetype, and making the host guess which spelling it got is how a producer ends up silently scanning nothing.