From cff17d1f056a73714ff1ba5a735987d140a6b51c Mon Sep 17 00:00:00 2001 From: Florrie Date: Thu, 16 Jul 2020 14:02:17 -0300 Subject: handle semicolons in measureColumns correctly too! --- util/ansi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/ansi.js b/util/ansi.js index f921349..d4ed71d 100644 --- a/util/ansi.js +++ b/util/ansi.js @@ -157,7 +157,7 @@ const ansi = { // codes (by not including them in the returned width). if (text.includes(ESC)) { - text = text.replace(new RegExp(ESC + '\\[\\??[0-9]*.', 'g'), '') + text = text.replace(new RegExp(ESC + '\\[\\??[0-9;]*.', 'g'), '') } return wcwidth(text) -- cgit 1.3.0-6-gf8a5