Scilab: fix regex

This commit is contained in:
Steffen Lange 2025-10-16 17:35:33 +02:00
parent f5df34a221
commit 9aa9aa42b3

View file

@ -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;
} }
} }