Krita: update regex
This commit is contained in:
parent
f88ef1c522
commit
4dc2bb99b0
1 changed files with 3 additions and 3 deletions
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
class Krita extends PatchBase {
|
||||
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 {
|
||||
if ($this->fetch('https://krita.org/en/download/krita-desktop/'))
|
||||
return $this->parse('/>Download Krita\s+([\d\.]+)<\/h3>/');
|
||||
if ($this->fetch('https://krita.org/en/download/'))
|
||||
return $this->parse('/>Download Krita\s+([\d\.]+)<\/h1>/');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue