fix pattern (#1439)

This commit is contained in:
Wenyu.Li
2025-01-12 14:21:59 +09:00
committed by GitHub
parent 9578ce0820
commit 4ad1c8a238
2 changed files with 4 additions and 4 deletions
+1 -1
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: