RouterOS Long-term: fix regex

This commit is contained in:
Steffen Lange 2021-12-13 15:56:23 +01:00
parent 33481e4a36
commit 7d41c13668

View file

@ -8,7 +8,7 @@ class MikroTikRouterOSLTS 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\.]+) \(Long-term\)/'); return $this->parse('/<th>([\d\.]+) Long-term<\/th>/');
} }
return false; return false;
} }