From 358fc7c55d620f9487e026c32f965c142d490732 Mon Sep 17 00:00:00 2001 From: Richard Holloway Date: Wed, 6 Sep 2017 09:21:59 +0100 Subject: [PATCH] Better regex (allow more than two extensions) (#1293) --- PHPCI/Plugin/PhpParallelLint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPCI/Plugin/PhpParallelLint.php b/PHPCI/Plugin/PhpParallelLint.php index 420e06ed9..6885cd968 100644 --- a/PHPCI/Plugin/PhpParallelLint.php +++ b/PHPCI/Plugin/PhpParallelLint.php @@ -87,7 +87,7 @@ public function __construct(Builder $phpci, Build $build, array $options = array 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 = str_replace(' ', '', $options['extensions']);