Parcourir la source

[Archiver] comment for a confusing line

Zbigniew il y a 11 ans
Parent
commit
5afe2f846f
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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);