Skip to content

Commit

Permalink
changing function arguments so that it follows the 3 char convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Hurley committed Feb 22, 2024
1 parent bd15671 commit 7d133a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/NumberTea
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ textTea() {
fi
;;

text )
txt )
local bytes=""
for (( i=0; i<${#value}; i++ )); do
# Get the UTF-8 byte representation of the character
Expand Down Expand Up @@ -281,7 +281,7 @@ while [[ "$1" =~ ^-.* ]]; do
if [[ $1 =~ ^[01\ ]+$ ]]; then
decoded=$(textTea "$1" "bin")
else
decoded=$(textTea "$1" "text")
decoded=$(textTea "$1" "txt")
fi

printf "encoded: ${encoded}\ndecoded: ${decoded}\n\n"
Expand Down

0 comments on commit 7d133a1

Please sign in to comment.