aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
blob: 60b29676a22627e18c302a3ec6659b5e806a7499 (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()
}