Memtest: parse Github tags
This commit is contained in:
parent
296c05aa48
commit
0dcddfe5e9
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ class Memtest extends PatchBase {
|
|||
parent::__construct('Samuel Demeulemeester', 'Memtest86+', 'https://www.memtest.org/');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.memtest.org/'))
|
||||
return $this->parse('/LATEST\s+VERSION : ([\d\.]+[a-z]?)/');
|
||||
if ($this->fetch_json('https://api.github.com/repos/memtest86plus/memtest86plus/tags'))
|
||||
return $this->parse_json('name');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue