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:
parent
2f658b0604
commit
ca77e33664
4 changed files with 33 additions and 14 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue