Remove spaces from list of extensions before passing to command + Remove extra \
This commit is contained in:
parent
d1db940ade
commit
31e527151d
|
@ -60,9 +60,10 @@ class PhpParallelLint extends Plugin
|
|||
|
||||
if (isset($options['extensions'])) {
|
||||
// Only use if this is a comma delimited list
|
||||
$pattern = '/^[a-z]*,\\ *[a-z]*$/';
|
||||
$pattern = '/^[a-z]*,\ *[a-z]*$/';
|
||||
|
||||
if (preg_match($pattern, $options['extensions'])) {
|
||||
$this->extensions = $options['extensions'];
|
||||
$this->extensions = str_replace(' ', '', $options['extensions']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue