mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
Fix version string regex
This commit is contained in:
parent
1019660f6a
commit
6dbebf4806
1 changed files with 1 additions and 1 deletions
|
|
@ -683,7 +683,7 @@ class RemoteVersionView(GenericAPIView):
|
|||
+ "/paperless-ngx/main/src/paperless/version.py",
|
||||
) as response:
|
||||
remote = response.read().decode("utf-8")
|
||||
match = re.search("(\\d+, \\d+, \\d+)", remote)
|
||||
match = re.search(r"(\d+, \d+, \d+)", remote)
|
||||
if match:
|
||||
remote_version = ".".join(match[0].split(", "))
|
||||
except urllib.error.URLError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue