Merge pull request #981 from salehhashemi1992/refactor/remove-ansi-sequences

[2.x] Refactor: Extract ANSI Escape Sequence Removal to a Function
This commit is contained in:
Nuno Maduro
2024-01-25 14:11:51 +00:00
committed by GitHub
7 changed files with 19 additions and 8 deletions

View File

@ -11,7 +11,7 @@ $run = function () {
$process->run();
return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $process->getOutput());
return removeAnsiEscapeSequences($process->getOutput());
};
test('parallel', function () use ($run) {