1 2 3 4 5 6 7 8
// Copyright (c) Corinvo, LLC and affiliates. MIT license. pub fn kebab_case(s: &str) -> String { s.split_whitespace() .map(|w| w.to_lowercase()) .collect::<Vec<_>>() .join("-") }