fix pattern (#1439)

This commit is contained in:
Wenyu.Li
2025-01-12 13:21:59 +08:00
committed by GitHub
parent 9578ce0820
commit 4ad1c8a238
2 changed files with 4 additions and 4 deletions

View File

@@ -413,7 +413,7 @@ def is_installed(name):
if name.startswith('#'):
return True
pattern = r'([^<>!=]+)([<>!=]=?)([0-9.a-zA-Z]*)'
pattern = r'([^<>!~=]+)([<>!~=]=?)([0-9.a-zA-Z]*)'
match = re.search(pattern, name)
if match: