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,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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue