Browse Source

Fix validation of license field

Jordi Boggiano 7 năm trước cách đây
mục cha
commit
0fc6fb56a0
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  1. 0 6
      src/Composer/Package/Loader/ValidatingArrayLoader.php

+ 0 - 6
src/Composer/Package/Loader/ValidatingArrayLoader.php

@@ -104,12 +104,6 @@ class ValidatingArrayLoader implements LoaderInterface
         }
 
         if (isset($this->config['license'])) {
-            if (is_string($this->config['license'])) {
-                $this->validateRegex('license', '[A-Za-z0-9+. ()-]+');
-            } else {
-                $this->validateFlatArray('license', '[A-Za-z0-9+. ()-]+');
-            }
-
             if (is_array($this->config['license']) || is_string($this->config['license'])) {
                 $licenses = (array) $this->config['license'];