Fix regex in stripAnsi.

This commit is contained in:
2025-11-19 15:03:28 -06:00
parent a33500f6d4
commit c1dbcd90a4
2 changed files with 2 additions and 2 deletions

View File

@@ -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, "")