Scribus: update url and regex

This commit is contained in:
Steffen Lange 2023-10-06 11:27:13 +02:00
parent 6383d257a5
commit 1dc817532f

View file

@ -5,8 +5,8 @@ class Scribus extends PatchBase {
parent::__construct('Scribus Team', 'Scribus', 'https://www.scribus.net/downloads/stable-branch/'); parent::__construct('Scribus Team', 'Scribus', 'https://www.scribus.net/downloads/stable-branch/');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.scribus.net/downloads/stable-branch/')) if ($this->fetch('https://www.scribus.net/downloads/'))
return $this->parse('/<strong>Current stable release: Scribus ([\d\.]+)<\/strong>/'); return $this->parse('_//sourceforge\.net/projects/scribus/files/scribus/([\d\.]+)/_');
return false; return false;
} }
} }