mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
IcingaCommand: allow underscore in constant names
This commit is contained in:
parent
03d739170c
commit
65b048d78b
@ -78,7 +78,7 @@ class IcingaCommand extends IcingaObject
|
|||||||
{
|
{
|
||||||
$command = $this->command;
|
$command = $this->command;
|
||||||
$prefix = '';
|
$prefix = '';
|
||||||
if (preg_match('~^([A-Z][A-Za-z0-9]+\s\+\s)(.+?)$~', $command, $m)) {
|
if (preg_match('~^([A-Z][A-Za-z0-9_]+\s\+\s)(.+?)$~', $command, $m)) {
|
||||||
$prefix = $m[1];
|
$prefix = $m[1];
|
||||||
$command = $m[2];
|
$command = $m[2];
|
||||||
} elseif ($command[0] !== '/') {
|
} elseif ($command[0] !== '/') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user