mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
parent
602f0cf755
commit
cbc731034a
@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
namespace Icinga\Application;
|
namespace Icinga\Application;
|
||||||
|
|
||||||
use Icinga\Exception\IcingaException;
|
|
||||||
|
|
||||||
class Version
|
class Version
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -25,10 +23,7 @@ class Version
|
|||||||
'/(?<!.)\s*(?P<gitCommitID>\w+)(?:\s*\(.*?(?:(?<=[\(,])\s*tag\s*:\s*v(?P<appVersion>.+?)\s*(?=[\),]).*?)?\))?\s*(?P<gitCommitDate>\S+)/ms',
|
'/(?<!.)\s*(?P<gitCommitID>\w+)(?:\s*\(.*?(?:(?<=[\(,])\s*tag\s*:\s*v(?P<appVersion>.+?)\s*(?=[\),]).*?)?\))?\s*(?P<gitCommitDate>\S+)/ms',
|
||||||
$appVersion,
|
$appVersion,
|
||||||
$matches
|
$matches
|
||||||
))) {
|
)) || $res === 0) {
|
||||||
throw new IcingaException('Failed at preg_match()');
|
|
||||||
}
|
|
||||||
if ($res === 0) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user