Skip to main content

normalize_id

Function normalize_id 

Source
pub fn normalize_id(name: &str) -> String
Expand description

Convert a directory/file name into a safe alphanumeric ID for use as a pack identifier. E.g. “Stranded II” → “stranded_ii”, “MyMod-v1!” → “mymod_v1”.