mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Fix version string regex
This commit is contained in:
		@@ -683,7 +683,7 @@ class RemoteVersionView(GenericAPIView):
 | 
				
			|||||||
                    + "/paperless-ngx/main/src/paperless/version.py",
 | 
					                    + "/paperless-ngx/main/src/paperless/version.py",
 | 
				
			||||||
                ) as response:
 | 
					                ) as response:
 | 
				
			||||||
                    remote = response.read().decode("utf-8")
 | 
					                    remote = response.read().decode("utf-8")
 | 
				
			||||||
                match = re.search("(\\d+, \\d+, \\d+)", remote)
 | 
					                match = re.search(r"(\d+, \d+, \d+)", remote)
 | 
				
			||||||
                if match:
 | 
					                if match:
 | 
				
			||||||
                    remote_version = ".".join(match[0].split(", "))
 | 
					                    remote_version = ".".join(match[0].split(", "))
 | 
				
			||||||
            except urllib.error.URLError:
 | 
					            except urllib.error.URLError:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user