Fix regex delimiters, refs #1419
parent
b34e8554d2
commit
6bb1b4ae78
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue