aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
blob: 8de27e3622a128ef461e1d91e7d333b3fc010cdc (plain)
1
2
3
4
/// Clean the message from newlines and carriage returns and convert it to lowercase.
pub fn clean_message(text: &str) -> String {
    text.replace("\n", "").replace("\r", "").to_lowercase()
}