From 43c2f8baf7b150ccc2b3ea8722023c1539bcdae1 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Fri, 31 Jul 2020 11:39:05 +0200 Subject: [PATCH] Add MikroTik RouterOS Long-term release --- modules/MikroTikRouterOSLTS.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/MikroTikRouterOSLTS.php diff --git a/modules/MikroTikRouterOSLTS.php b/modules/MikroTikRouterOSLTS.php new file mode 100644 index 0000000..315e9f7 --- /dev/null +++ b/modules/MikroTikRouterOSLTS.php @@ -0,0 +1,17 @@ +patch->setBranch('Long-term'); + } + function check() : bool { + if ($this->fetch('https://mikrotik.com/download')) { + $this->str_crop('id="routeros"', ''); + return $this->parse('/([\d\.]+) \(Long-term\)/'); + } + return false; + } +} + +?>