Explorar el Código

[Archiver] comment for a confusing line

Zbigniew hace 11 años
padre
commit
5afe2f846f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/Composer/Package/Archiver/BaseExcludeFilter.php

+ 1 - 0
src/Composer/Package/Archiver/BaseExcludeFilter.php

@@ -140,6 +140,7 @@ abstract class BaseExcludeFilter
             $pattern .= '/';
         }
 
+        // remove delimiters as well as caret (^) from the regex
         $pattern .= substr(Finder\Glob::toRegex($rule), 2, -1);
 
         return array($pattern . '#', $negate, false);