mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 01:07:23 +01:00
Extract ANSI escape sequence to a function
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user