Skip to content

Commit ff87356

Browse files
committed
Add ✗ and ✓ symbol variants to logger stripSymbols
Support additional checkmark and error symbol variants commonly used in terminal output.
1 parent 3d9e8c7 commit ff87356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/logger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ export class Logger {
313313
*/
314314
#stripSymbols(text: string): string {
315315
// Strip both unicode and emoji forms of log symbols from the start.
316-
// Matches: ✖, ×, ✖️, ⚠, ‼, ⚠️, ✔, √, ✔️, ℹ, ℹ️
316+
// Matches: ✖, ✗, ×, ✖️, ⚠, ‼, ⚠️, ✔, ✓, √, ✔️, ✓️, ℹ, ℹ️
317317
// Also handles variation selectors (U+FE0F) and whitespace after symbol.
318318
// Note: We don't strip standalone 'i' to avoid breaking words like 'info'.
319-
return text.replace(/^[×]\uFE0F?\s*/u, '')
319+
return text.replace(/^[×]\uFE0F?\s*/u, '')
320320
}
321321

322322
/**

0 commit comments

Comments
 (0)