diff --git a/src/PHPCensor/Plugin/PhpParallelLint.php b/src/PHPCensor/Plugin/PhpParallelLint.php index 5fa044bb..4a1cd744 100644 --- a/src/PHPCensor/Plugin/PhpParallelLint.php +++ b/src/PHPCensor/Plugin/PhpParallelLint.php @@ -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']); } } }