1
0
Fork 0

Fix regex delimiters, refs #1419

pull/1420/head
Jordi Boggiano 2012-12-13 16:54:21 +01:00
parent b34e8554d2
commit 6bb1b4ae78
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ class Installer
foreach ($this->updateWhitelist as $whiteListedPattern => $void) {
$cleanedWhiteListedPattern = str_replace('\\*', '.*', preg_quote($whiteListedPattern));
if (preg_match("#^".$cleanedWhiteListedPattern."$#i", $package->getName())) {
if (preg_match("{^".$cleanedWhiteListedPattern."$}i", $package->getName())) {
return true;
}
}