From c1dbcd90a483a5d75b739d252b51c953c7c4875a Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Wed, 19 Nov 2025 15:03:28 -0600 Subject: [PATCH] Fix regex in stripAnsi. --- cliutils.nim | 2 +- cliutils.nimble | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cliutils.nim b/cliutils.nim index ec327f5..5f1b7ba 100644 --- a/cliutils.nim +++ b/cliutils.nim @@ -30,7 +30,7 @@ proc withColor*(str: string, color: TermColor, bright, bold, skipReset = false): proc stripAnsi*(str: string): string = - let STRIP_ANSI_REGEX = re"\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]" + let STRIP_ANSI_REGEX = re"\x1B\[([0-9]{1,2}(;[0-9]{0,2})?)?[m|K]" return str.replace(STRIP_ANSI_REGEX, "") diff --git a/cliutils.nimble b/cliutils.nimble index 71c089f..ba528a6 100644 --- a/cliutils.nimble +++ b/cliutils.nimble @@ -1,6 +1,6 @@ # Package -version = "0.10.0" +version = "0.10.1" author = "Jonathan Bernard" description = "Helper functions for writing command line interfaces." license = "MIT"