Added support for pasted character and removed unecessary variables.

This commit is contained in:
Syphist 2020-08-25 04:45:13 -05:00
parent 4141531b22
commit 10cf43e53a

View file

@ -3879,8 +3879,8 @@ print_ascii() {
line=${line//\\\\/\\}
line=${line//█/ }
# Use Regex through sed to remove color and formatting codes
search='\\033\[*([0-9;])[JKmsu]'
line=${line//$search/}
line=${line//\\033\[*([0-9;])[JKmsu]/}
line=${line//\[*([0-9;])[JKmsu]/}
((++lines,${#line}>ascii_len)) && ascii_len="${#line}"
done <<< "${ascii_data//\$\{??\}}"