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;
|
||||
$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];
|
||||
$command = $m[2];
|
||||
} elseif ($command[0] !== '/') {
|
||||
|
|
Loading…
Reference in New Issue