Skip to content

Commit

Permalink
Improve stripping of Symfony formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Aug 15, 2023
1 parent 28929df commit 67f9fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Themes/Default/Concerns/DrawsBoxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ protected function stripEscapeSequences(string $text): string
{
$text = preg_replace("/\e[^m]*m/", '', $text);

return preg_replace("/<bg=[a-z]+>(.*?)<\/>/i", '$1', $text);
return preg_replace("/<(?:(?:[fb]g|options)=[a-z;]+)+>(.*?)<\/>/i", '$1', $text);
}
}

0 comments on commit 67f9fff

Please sign in to comment.