From 10cf43e53a42a922d6bf53205482493b90d8b376 Mon Sep 17 00:00:00 2001 From: Syphist Date: Tue, 25 Aug 2020 04:45:13 -0500 Subject: [PATCH] Added support for pasted character and removed unecessary variables. --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index efce4681..f5665123 100755 --- a/neofetch +++ b/neofetch @@ -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//\$\{??\}}"