Skip to content

Commit

Permalink
DX: DiffConsoleFormatter - escape -
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Dec 16, 2021
1 parent 1f4f55a commit 23aaa2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Differ/DiffConsoleFormatter.php
Expand Up @@ -58,7 +58,7 @@ static function (string $line) use ($isDecorated, $lineTemplate): string {
if ($isDecorated) {
$count = 0;
$line = Preg::replaceCallback(
'/^([+-@].*)/',
'/^([+\-@].*)/',
static function (array $matches): string {
if ('+' === $matches[0][0]) {
$colour = 'green';
Expand Down

0 comments on commit 23aaa2e

Please sign in to comment.