From 6dbebf4806380b4e01203a6c57dc72e4132fb2be Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 1 Apr 2022 11:10:29 -0700 Subject: [PATCH] Fix version string regex --- src/documents/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/views.py b/src/documents/views.py index 8ae34d454..09f18c9e6 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -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: