DOSBox-X: fix version regex

This commit is contained in:
Steffen Lange 2022-08-08 17:14:59 +02:00
parent 02cd7cf142
commit 89f54f9f35

View file

@ -6,7 +6,7 @@ class DOSBoxX extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/joncampbell123/dosbox-x/releases/latest')) if ($this->fetch_json('https://api.github.com/repos/joncampbell123/dosbox-x/releases/latest'))
return $this->parse_json('tag_name', '/dosbox-x-v(.+)/'); return $this->parse_json('tag_name', '/-v(.+)$/');
return false; return false;
} }
} }