Inkscape: parse response header
This commit is contained in:
parent
9d42d9682a
commit
1c3fc3d868
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ class Inkscape extends PatchBase {
|
|||
parent::__construct('Inkscape Authors', 'Inkscape', 'https://inkscape.org/release/');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://inkscape.org/release/'))
|
||||
return $this->parse('/<h1>Inkscape ([\d\.]+)<\/h1>/');
|
||||
if ($this->fetch_header('https://inkscape.org/release/'))
|
||||
return $this->parse('/\/release\/inkscape-([\d\.]+)/');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue