Update src/NanoVNASaver/Windows/About.py

Use raw string for regex
pull/715/head
Holger Müller 2024-07-05 07:37:45 +02:00
rodzic da87473e88
commit f3f1ed092e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -146,7 +146,7 @@ class AboutWindow(QtWidgets.QWidget):
line = line.decode("utf-8") line = line.decode("utf-8")
found_latest_version = TAGS_KEY in line found_latest_version = TAGS_KEY in line
if found_latest_version: 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 break
except error.HTTPError as e: except error.HTTPError as e:
logger.exception( logger.exception(