Skip to content

Commit 26a878e

Browse files
Copilotswissspidy
andcommitted
Update inline comment to reflect color token normalization before sprintf
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent a45e558 commit 26a878e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/Streams.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function render( $msg ) {
4141

4242
// If the first argument is not an array just pass to sprintf
4343
if( !is_array( $args[1] ) ) {
44-
// Colorize the message first so sprintf doesn't bitch at us
44+
// Normalize color tokens before sprintf: colorize or strip them so no raw %tokens reach sprintf
4545
if ( Colors::shouldColorize() ) {
4646
$args[0] = Colors::colorize( $args[0] );
4747
} else {

0 commit comments

Comments
 (0)