From d09c85e0a2b3edad9a2b2fd4b83e758f818094e6 Mon Sep 17 00:00:00 2001 From: Till Skrodzki Date: Mon, 15 Jan 2024 20:32:13 +0100 Subject: [PATCH] Remove excess backslash --- mapadroid/websocket/communicator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapadroid/websocket/communicator.py b/mapadroid/websocket/communicator.py index 5da618840..0ed423bc7 100644 --- a/mapadroid/websocket/communicator.py +++ b/mapadroid/websocket/communicator.py @@ -272,7 +272,7 @@ async def get_external_ip(self) -> Optional[str]: try: # Regex ^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$ from # https://stackoverflow.com/questions/5284147/validating-ipv4-addresses-with-regexp - found = re.search(r'(((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\\b){4})', res) + found = re.search(r'(((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4})', res) if found: ip_address_found = found.group(1) except Exception as e: