Skip to main content

parse_kv

Function parse_kv 

Source
pub fn parse_kv(content: &str) -> HashMap<String, String>
Expand description

Parse key=value pairs from a Slack message content string. Strips a leading bot-mention (<@Uxxxx>) and the command token before parsing. Keys are lowercased. Quoted values (key="value with spaces") are supported.