Skip to main content

slugify

Function slugify 

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

Slug a plugin’s display name into a lowercase, hyphenated, ASCII-safe identifier suitable for filesystem paths, LV2 bundle names, and IRI components.

Rules: ASCII alphanumerics pass through lowercased; every other character (including runs of them) collapses to a single -; leading and trailing dashes are trimmed.