mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 17:57:23 +01:00
Extract ANSI escape sequence to a function
This commit is contained in:
@ -10,7 +10,7 @@ test('collision', function (array $arguments) {
|
||||
|
||||
$process->run();
|
||||
|
||||
return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $process->getOutput());
|
||||
return removeAnsiEscapeSequences($process->getOutput());
|
||||
};
|
||||
|
||||
$outputContent = explode("\n", $output());
|
||||
|
||||
Reference in New Issue
Block a user