diff --git a/neofetch b/neofetch index 5548fdb6..e75b7f4d 100755 --- a/neofetch +++ b/neofetch @@ -4579,7 +4579,7 @@ get_python_ver() { if command -v python &> /dev/null; then python_ver=$(python -VVV) python_ver=${python_ver//$'\n'/} - python_ver=${python_ver//\(+([^\)])\)} + python_ver=${python_ver//+([[:space:]])\(+([^\)])\)} python_ver=$(echo "$python_ver" | awk '$1=$1') fi }