Commit feceac30 authored by Caleb Cooper's avatar Caleb Cooper
Browse files

Update character-counter.sh

parent c3203042
......@@ -9,7 +9,7 @@ for (( CHAR_NUM=0 ; CHAR_NUM < ${#INPUT} ; CHAR_NUM++ )); do
unset CUR_CHAR
CUR_CHAR="${INPUT:$CHAR_NUM:1}"
if [[ "${CUR_CHAR}" =~ [[:space:]] ]]; then
CUR_CHAR='ѕрасе'
CUR_CHAR='ѕрасе' # All the letter in "space" are Cyrillic to avoid matching with input.
fi
CHARS[${CHAR_NUM}]=${CUR_CHAR}
if [[ "${!CHARS_COUNT[*]}" =~ "${CUR_CHAR}" ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment