From f0195b3b0bd923fd3e6bc202ef49a0748ffd3c45 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 17 Nov 2024 06:10:40 +0000 Subject: [PATCH] Improve regex for plugin matching --- src/backend/InvenTree/plugin/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/InvenTree/plugin/installer.py b/src/backend/InvenTree/plugin/installer.py index 1e7b977352..4551f29560 100644 --- a/src/backend/InvenTree/plugin/installer.py +++ b/src/backend/InvenTree/plugin/installer.py @@ -88,7 +88,7 @@ def check_plugins_path(packagename: str) -> bool: output = result.decode('utf-8').split('\n') # Check if the package is installed in the plugins directory - return any(re.match(f'^{packagename}==', line.strip()) for line in output) + return any(re.match(rf'^{packagename}[\s=@]', line.strip()) for line in output) def check_package_path(packagename: str) -> str: