Module: Allow `/` and `-` in module/library dependency names
This commit is contained in:
parent
229e24519a
commit
4e3811cc84
|
@ -967,7 +967,7 @@ class Module
|
||||||
|
|
||||||
$parts = preg_split('/,\s+/', $val);
|
$parts = preg_split('/,\s+/', $val);
|
||||||
foreach ($parts as $part) {
|
foreach ($parts as $part) {
|
||||||
if (preg_match('/^(\w+)\s+\((.+)\)$/', $part, $m)) {
|
if (preg_match('/^([\w\-\/]+)\s+\((.+)\)$/', $part, $m)) {
|
||||||
$metadata->{$key}[$m[1]] = $m[2];
|
$metadata->{$key}[$m[1]] = $m[2];
|
||||||
} else {
|
} else {
|
||||||
// TODO: FAIL?
|
// TODO: FAIL?
|
||||||
|
|
Loading…
Reference in New Issue