Skip to content

Commit

Permalink
Update src/NanoVNASaver/Windows/About.py
Browse files Browse the repository at this point in the history
Use raw string for regex
  • Loading branch information
zarath authored Jul 5, 2024
1 parent aec8467 commit 8f89283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NanoVNASaver/Windows/About.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def findUpdates(self, automatic=False):
line = line.decode("utf-8")
found_latest_version = TAGS_KEY in line
if found_latest_version:
latest_version = Version(re.search("(\\d+\\.\\d+\\.\\d+)", line).group())
latest_version = Version(re.search(r"(\d+\.\d+\.\d+)", line).group())
break
except error.HTTPError as e:
logger.exception(
Expand Down

0 comments on commit 8f89283

Please sign in to comment.