RouterOS: fix regex

This commit is contained in:
Steffen Lange 2021-12-13 15:56:05 +01:00
parent 54badca38b
commit 33481e4a36

View file

@ -8,7 +8,7 @@ class MikroTikRouterOS 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="routeros"', '</thead>');
return $this->parse('/<th>([\d\.]+) \(Stable\)/'); return $this->parse('/<th>([\d\.]+) Stable<\/th>/');
} }
return false; return false;
} }