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

@@ -23,7 +23,7 @@ sys.path.append(glob_path)
import cm_global
from manager_util import *
version = [2, 48, 6]
version = [2, 48, 7]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
@@ -123,7 +123,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: