diff options
author | Florrie <towerofnix@gmail.com> | 2020-07-16 14:02:17 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2020-07-16 14:02:17 -0300 |
commit | cff17d1f056a73714ff1ba5a735987d140a6b51c (patch) | |
tree | d55505b0e99915e915c8cc0c20adaa753f62752d /util | |
parent | 3bd328e68894a7819aa26e2325d7984eaa3959e0 (diff) |
handle semicolons in measureColumns correctly too!
Diffstat (limited to 'util')
-rw-r--r-- | util/ansi.js | 2 |
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) |