The world's most clever kitty cat

Split by unicode whitespace instead of ASCII

bwc9876.dev 529ae19f 0e7f6601

verified
+2 -2
+2 -2
src/brain.rs
··· 85 85 } 86 86 87 87 fn parse(msg: &str) -> impl Iterator<Item = Token> { 88 - msg.split_ascii_whitespace() 88 + msg.split_whitespace() 89 89 .filter_map(|w| { 90 90 // Filter out pings, they can get annoying 91 91 if w.starts_with("<@") && w.ends_with(">") { ··· 105 105 } 106 106 107 107 fn extract_final_word(msg: &str) -> Option<String> { 108 - msg.split_ascii_whitespace() 108 + msg.split_whitespace() 109 109 .last() 110 110 .and_then(Self::normalize_token) 111 111 }