Libraries: Only attempt a partial match if the library name contains a slash
fixes #4971
This commit is contained in:
parent
cbf8cfc738
commit
8837fea7a4
|
@ -80,7 +80,7 @@ class Libraries implements IteratorAggregate
|
|||
$libraryName = $library->getName();
|
||||
if ($libraryName === $name) {
|
||||
return $library;
|
||||
} elseif (explode('/', $libraryName)[1] === $name) {
|
||||
} elseif (strpos($libraryName, '/') !== false && explode('/', $libraryName)[1] === $name) {
|
||||
// Also return libs which only partially match
|
||||
$candidate = $library;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue