mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
602f0cf755
commit
cbc731034a
@ -3,8 +3,6 @@
|
||||
|
||||
namespace Icinga\Application;
|
||||
|
||||
use Icinga\Exception\IcingaException;
|
||||
|
||||
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',
|
||||
$appVersion,
|
||||
$matches
|
||||
))) {
|
||||
throw new IcingaException('Failed at preg_match()');
|
||||
}
|
||||
if ($res === 0) {
|
||||
)) || $res === 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user