Skip to content

Commit

Permalink
adds r to make regex a raw string
Browse files Browse the repository at this point in the history
  • Loading branch information
gurubert committed Aug 28, 2024
1 parent 8863966 commit 29c7352
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents/special/agent_unifi_controller
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Binary file removed unifi_controller-0.88.2.mkp
Binary file not shown.
Binary file added unifi_controller-0.88.3.mkp
Binary file not shown.

0 comments on commit 29c7352

Please sign in to comment.