Chore: Remove unused ansiRegex (dead code after manual parsing optimization)

This commit is contained in:
phranck
2026-02-09 18:33:30 +01:00
parent 2f8b351bfb
commit f288eb71a4
@@ -21,13 +21,6 @@ enum ANSIRenderer {
/// Dim/faint text style code.
static let dim = "\(csi)2m"
/// Precompiled regex that matches any ANSI escape sequence.
///
/// Used by `String.stripped` and `String.strippedLength` to remove
/// formatting codes for visible-width calculations. Compiling once
/// avoids per-call overhead in the hot rendering path.
nonisolated(unsafe) static let ansiRegex = /\u{1B}\[[0-9;]*[a-zA-Z]/
// MARK: - SGR Style Codes
/// Named constants for ANSI SGR (Select Graphic Rendition) attribute codes.