From 0dcddfe5e9153fa5064b6bb457b1eb0902fa473d Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Mon, 9 May 2022 16:42:40 +0200 Subject: [PATCH] Memtest: parse Github tags --- modules/Memtest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Memtest.php b/modules/Memtest.php index bfecb5a..0203e85 100644 --- a/modules/Memtest.php +++ b/modules/Memtest.php @@ -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; } }