Fix regex
parent
5cdf40d165
commit
81d55544f7
|
@ -47,7 +47,7 @@ class ProcessExecutor
|
|||
$process = new Process($command, $cwd, null, null, static::getTimeout());
|
||||
|
||||
if ($this->io && $this->io->isDebug()) {
|
||||
$safeCommand = preg_replace('{(//[^:]+:)[^@]+}', '$1****', $command);
|
||||
$safeCommand = preg_replace('{(://[^:/\s]+:)[^@\s/]+}i', '$1****', $command);
|
||||
$this->io->write('Executing command ('.($cwd ?: 'CWD').'): '.$safeCommand);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue