RouterOS: fix regex for version 6

This commit is contained in:
Steffen Lange 2024-03-06 17:29:26 +01:00
parent 9e588839d7
commit 52fb89ba7d
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ class MikroTikRouterOS6 extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://mikrotik.com/download')) { if ($this->fetch('https://mikrotik.com/download')) {
$this->str_crop('id="routeros"', '</thead>'); $this->str_crop('id="routeros6"', '</thead>');
return $this->parse('/<th>([\d\.]+) Stable<\/th>/'); return $this->parse('/<th>([\d\.]+) Stable<\/th>/');
} }
return false; return false;

View file

@ -7,8 +7,8 @@ class MikroTikRouterOS6LTS extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://mikrotik.com/download')) { if ($this->fetch('https://mikrotik.com/download')) {
$this->str_crop('id="routeros"', '</thead>'); $this->str_crop('id="routeros6"', '</thead>');
return $this->parse('/<th>([\d\.]+) Long-term<\/th>/'); return $this->parse('/<th>([\d\.]+) Long-[Tt]erm<\/th>/');
} }
return false; return false;
} }