Преглед на файлове

[Archiver] comment for a confusing line

Zbigniew преди 11 години
родител
ревизия
5afe2f846f
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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);