1.3.0 :: implemented the text autodetection for decoding which should have been present in 1.1.0 however wasn't because i forgor, also updated the README to reflect changes in encoding and decoding text

This commit is contained in:
ika4422 2026-02-11 20:32:14 +00:00
parent 2f658b0604
commit ca77e33664
No known key found for this signature in database
4 changed files with 33 additions and 14 deletions

View file

@ -118,8 +118,11 @@ fn main() {
}
}
} else if let Some(input) = args.decode {
if args.text {
let decode_as_text = args.text || input.split_whitespace().count() > 1;
if decode_as_text {
let mut decoded_chars = String::new();
for part in input.split_whitespace() {
match from_dollcode(part) {
Ok(val) => {