« get me outta code hell

handle semicolons in measureColumns correctly too! - tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/util
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-07-16 14:02:17 -0300
committerFlorrie <towerofnix@gmail.com>2020-07-16 14:02:17 -0300
commitcff17d1f056a73714ff1ba5a735987d140a6b51c (patch)
treed55505b0e99915e915c8cc0c20adaa753f62752d /util
parent3bd328e68894a7819aa26e2325d7984eaa3959e0 (diff)
handle semicolons in measureColumns correctly too!
Diffstat (limited to 'util')
-rw-r--r--util/ansi.js2
1 files changed, 1 insertions, 1 deletions
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)