Scilab: fix regex
This commit is contained in:
parent
f5df34a221
commit
9aa9aa42b3
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ class Scilab extends PatchBase {
|
||||||
parent::__construct('ESI Group', 'Scilab', 'https://www.scilab.org/download');
|
parent::__construct('ESI Group', 'Scilab', 'https://www.scilab.org/download');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch_header('https://www.scilab.org/latest'))
|
if ($this->fetch('https://www.scilab.org/download'))
|
||||||
return $this->parse('/\/download\/scilab-([\d\.]+)/');
|
return $this->parse('/<h1>Scilab ([\d\.]+)<\/h1>/');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue