Эх сурвалжийг харах

Fix validation of license field

Jordi Boggiano 7 жил өмнө
parent
commit
0fc6fb56a0

+ 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'];