From 96154af588bec35f9cceffc558c5568259372ada Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Fri, 31 May 2024 19:07:40 +0200 Subject: [PATCH] Perl: parse json file --- modules/StrawberryPerl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/StrawberryPerl.php b/modules/StrawberryPerl.php index f93ab32..0eea26a 100644 --- a/modules/StrawberryPerl.php +++ b/modules/StrawberryPerl.php @@ -5,8 +5,8 @@ class StrawberryPerl extends PatchBase { parent::__construct('Adam Kennedy', 'Strawberry Perl', 'https://strawberryperl.com/'); } function check() : bool { - if ($this->fetch('https://strawberryperl.com/')) - return $this->parse('_/strawberry-perl-([\d\.]+)-\d+bit\.msi_'); + if ($this->fetch_json('https://strawberryperl.com/releases.json')) + return $this->parse_json('version'); return false; } }