Commit 4083770a authored by Dylan Araps's avatar Dylan Araps

ascii: Strip esc chars when calculating length. Closes #942

parent f25b76a0
......@@ -2653,6 +2653,9 @@ get_ascii() {
print+="$line \n"
# Calculate size of ascii file in line length / line count.
line="${line//[??;?;??m}"
line="${line//[??;?;???m}"
line="${line//}"
line="${line//\$\{??\}}"
line="${line//\\\\/\\}"
((${#line} > ascii_length)) && ascii_length="${#line}"
......
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