From 4e3811cc845889ee3eb9896696e399675947f86c Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 31 May 2021 16:28:05 +0200 Subject: [PATCH] Module: Allow `/` and `-` in module/library dependency names --- library/Icinga/Application/Modules/Module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Application/Modules/Module.php b/library/Icinga/Application/Modules/Module.php index 195376f1c..2c13cd018 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -967,7 +967,7 @@ class Module $parts = preg_split('/,\s+/', $val); foreach ($parts as $part) { - if (preg_match('/^(\w+)\s+\((.+)\)$/', $part, $m)) { + if (preg_match('/^([\w\-\/]+)\s+\((.+)\)$/', $part, $m)) { $metadata->{$key}[$m[1]] = $m[2]; } else { // TODO: FAIL?