Skip to main content

sanitize

Function sanitize 

Source
pub fn sanitize(part: &str) -> String
Expand description

Replaces each character that a URI part cannot hold with -.

assert_eq!(riff_core::name::sanitize("feat/login page"), "feat-login-page");