Skip to content

Commit

Permalink
Better regex (allow more than two extensions) (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Holloway authored and Dan Cryer committed Sep 6, 2017
1 parent 0e7679b commit 358fc7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PHPCI/Plugin/PhpParallelLint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 358fc7c

Please sign in to comment.