RouterOS: fix regex for version 6
This commit is contained in:
parent
9e588839d7
commit
52fb89ba7d
2 changed files with 3 additions and 3 deletions
|
|
@ -7,8 +7,8 @@ class MikroTikRouterOS6LTS extends PatchBase {
|
|||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://mikrotik.com/download')) {
|
||||
$this->str_crop('id="routeros"', '</thead>');
|
||||
return $this->parse('/<th>([\d\.]+) Long-term<\/th>/');
|
||||
$this->str_crop('id="routeros6"', '</thead>');
|
||||
return $this->parse('/<th>([\d\.]+) Long-[Tt]erm<\/th>/');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue