fix: invalid version handling

https://github.com/ltdrdata/ComfyUI-Manager/issues/953
This commit is contained in:
Dr.Lt.Data
2024-08-14 01:53:28 +09:00
parent 74bf39ab27
commit d95b974941
4 changed files with 56 additions and 55 deletions

View File

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