Permalink
Browse files

Merge pull request #134 from Hounddog/filter_expression

Removed Paranthesis to allow for more complex Regex
  • Loading branch information...
beberlei committed May 5, 2012
2 parents 03be671 + 8beb732 commit 9437616a4dd0e4f7a5b793fcbd6d1a2d6660eb8a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
@@ -218,7 +218,7 @@ protected function filterAssetNames($assetNames)
return array_values (
array_filter($assetNames, function ($assetName) use ($filterExpr) {
$assetName = ($assetName instanceof AbstractAsset) ? $assetName->getName() : $assetName;
- return preg_match('(' . $filterExpr . ')', $assetName);
+ return preg_match($filterExpr, $assetName);
})
);
}

0 comments on commit 9437616

Please sign in to comment.