This commit is contained in:
Steffen Lange 2021-01-30 16:22:11 +01:00
parent d2bbd24b5f
commit ba583831ae
2 changed files with 15 additions and 1 deletions

View file

@ -40,7 +40,7 @@ class PatchObject {
}
function setVersion(string $version, bool $trim = false) {
if ($trim) {
$version = preg_replace('/^(release-|v)/', '', $version);
$version = preg_replace('/^(release-|RELEASE\.|v)/', '', $version);
}
$this->version = $version;
}

14
modules/XCA.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class XCA extends PatchBase {
function __construct() {
parent::__construct('Christian Hohnstädt', 'XCA', 'https://hohnstaedt.de/xca/index.php/download');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/chris2511/xca/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>