mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-09 02:23:15 +00:00
Improve regex for plugin matching
This commit is contained in:
1 parent
0278350351
commit
f0195b3b0b
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user