Remove spaces from list of extensions before passing to command + Remove extra \

This commit is contained in:
Richard Holloway 2017-01-11 00:05:32 +07:00 committed by Dmitry Khomutov
parent d1db940ade
commit 31e527151d

View file

@ -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']);
}
}
}