Added support for pasted character and removed unecessary variables.
This commit is contained in:
parent
4141531b22
commit
10cf43e53a
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
|
@ -3879,8 +3879,8 @@ print_ascii() {
|
||||||
line=${line//\\\\/\\}
|
line=${line//\\\\/\\}
|
||||||
line=${line//█/ }
|
line=${line//█/ }
|
||||||
# Use Regex through sed to remove color and formatting codes
|
# Use Regex through sed to remove color and formatting codes
|
||||||
search='\\033\[*([0-9;])[JKmsu]'
|
line=${line//\\033\[*([0-9;])[JKmsu]/}
|
||||||
line=${line//$search/}
|
line=${line//\[*([0-9;])[JKmsu]/}
|
||||||
((++lines,${#line}>ascii_len)) && ascii_len="${#line}"
|
((++lines,${#line}>ascii_len)) && ascii_len="${#line}"
|
||||||
done <<< "${ascii_data//\$\{??\}}"
|
done <<< "${ascii_data//\$\{??\}}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue