Explorar o código

Fix regex delimiters, refs #1419

Jordi Boggiano %!s(int64=12) %!d(string=hai) anos
pai
achega
6bb1b4ae78
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Installer.php

+ 1 - 1
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;
             }
         }