Skip to content

Commit

Permalink
Remove excess backslash
Browse files Browse the repository at this point in the history
  • Loading branch information
Grennith committed Jan 15, 2024
1 parent aac96da commit d09c85e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapadroid/websocket/communicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d09c85e

Please sign in to comment.