pub fn kebab_case_with_limit<T: AsRef<str>>(t: T, limit: usize) -> String
Expand description

Formats the input string as a kebab case name and limits the length of the name.

Examples

assert_eq!(reword::kebab_case_with_limit("Even Olsson Rogstadkjærnet", 25), "even-o-rogstadkjærnet");