Skip to content
Permalink
Browse files

Better regex (allow more than two extensions) (#1293)

  • Loading branch information...
richardjh authored and Dan Cryer committed Sep 6, 2017
1 parent 0e7679b commit 358fc7c55d620f9487e026c32f965c142d490732
Showing with 1 addition and 1 deletion.
  1. +1 −1 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']);

0 comments on commit 358fc7c

Please sign in to comment.
You can’t perform that action at this time.