fix(core): fix lint/type issues and small refactors

This commit is contained in:
2026-01-29 17:46:23 +00:00
parent 165c7d29bb
commit cb34ae5041
15 changed files with 39 additions and 20 deletions

View File

@@ -230,7 +230,8 @@ export class Logger {
* Strip ANSI color codes from string for accurate length calculation
*/
private stripAnsi(text: string): string {
// Remove ANSI escape codes
// Remove ANSI escape codes (intentional control character regex)
// deno-lint-ignore no-control-regex
return text.replace(/\x1b\[[0-9;]*m/g, '');
}