From 65b048d78ba9af87189ca2b634d6f7f436e51f9d Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 1 Apr 2016 14:08:27 +0200 Subject: [PATCH] IcingaCommand: allow underscore in constant names --- library/Director/Objects/IcingaCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaCommand.php b/library/Director/Objects/IcingaCommand.php index a0f6627c..6020205d 100644 --- a/library/Director/Objects/IcingaCommand.php +++ b/library/Director/Objects/IcingaCommand.php @@ -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] !== '/') {