From 6bb1b4ae78064086a55c16c8b41c330047a431b9 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 13 Dec 2012 16:54:21 +0100 Subject: [PATCH] Fix regex delimiters, refs #1419 --- src/Composer/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 3ded1c66a..c6c0ebfa5 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -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; } }