Pārlūkot izejas kodu

[Archiver] comment for a confusing line

Zbigniew 11 gadi atpakaļ
vecāks
revīzija
5afe2f846f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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);