Krita: update regex

This commit is contained in:
Steffen Lange 2024-02-16 22:11:16 +01:00
parent f88ef1c522
commit 4dc2bb99b0

View file

@ -2,11 +2,11 @@
class Krita extends PatchBase { class Krita extends PatchBase {
function __construct() { function __construct() {
parent::__construct('Krita Foundation', 'Krita', 'https://krita.org/en/download/krita-desktop/'); parent::__construct('Krita Foundation', 'Krita', 'https://krita.org/en/download/');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://krita.org/en/download/krita-desktop/')) if ($this->fetch('https://krita.org/en/download/'))
return $this->parse('/>Download Krita\s+([\d\.]+)<\/h3>/'); return $this->parse('/>Download Krita\s+([\d\.]+)<\/h1>/');
return false; return false;
} }
} }