Explorar o código

[Archiver] comment for a confusing line

Zbigniew %!s(int64=11) %!d(string=hai) anos
pai
achega
5afe2f846f
Modificáronse 1 ficheiros con 1 adicións e 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);