From 33481e4a3685a87cf24f81c608d41b7b4abfddcc Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Mon, 13 Dec 2021 15:56:05 +0100 Subject: [PATCH] RouterOS: fix regex --- modules/MikroTikRouterOS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/MikroTikRouterOS.php b/modules/MikroTikRouterOS.php index 9f7f4cb..f64f09b 100644 --- a/modules/MikroTikRouterOS.php +++ b/modules/MikroTikRouterOS.php @@ -8,7 +8,7 @@ class MikroTikRouterOS extends PatchBase { function check() : bool { if ($this->fetch('https://mikrotik.com/download')) { $this->str_crop('id="routeros"', ''); - return $this->parse('/([\d\.]+) \(Stable\)/'); + return $this->parse('/([\d\.]+) Stable<\/th>/'); } return false; }