code cleanup

This commit is contained in:
askiiart 2025-01-13 22:44:16 -06:00
parent 7e40f48064
commit 3d083c2e06
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A

View file

@ -59,12 +59,11 @@ pub fn encode(text: String) -> String {
pub fn decode(text: String) -> String {
let catspeak_words: Vec<String> = text
.split("; ")
.into_iter()
.map(|item| item.to_string())
.collect();
let mut output: String = String::new();
for engl_word in catspeak_words {
let mut word = "".to_string();
let mut word = String::new();
for engl_letter in core::split_every_x(engl_word, 3) {
let char_num = core::cat_to_num(
engl_letter