adds r to make regex a raw string

This commit is contained in:
Robert Sander 2024-08-28 10:33:04 +02:00
parent 8863966ce7
commit 29c7352a5e
3 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ class unifi_controller(unifi_object):
for _dev in self._UNIFI_DEVICES:
_dev._get_uplink()
if hasattr(self,"cloudkey_version"):
self.cloudkey_version = re.sub(".*?v(\d+\.\d+\.\d+\.[a-z0-9]+).*","\\1",self.cloudkey_version)
self.cloudkey_version = re.sub(r".*?v(\d+\.\d+\.\d+\.[a-z0-9]+).*","\\1",self.cloudkey_version)
self.type = getattr(self,"ubnt_device_type","unifi-sw-controller")
self.controller_version = self.version
delattr(self,"version")

Binary file not shown.

BIN
unifi_controller-0.88.3.mkp Normal file

Binary file not shown.