Function grace_cli::core::case::string::sanitize

source ·
pub fn sanitize(str_to_sanitize: &str) -> String
Expand description

Sanitize a string by removing all characters that are not alphanumeric. The only characters that are allowed are: a-z, A-Z, 0-9, _, and -. Used regex is r"[\(\)’@#<>+«»~&%^—,!\.\[\]{}\?:;·']"