Skip to content

Commit

Permalink
Allow version names like v0.0.1 for the FrontendManager.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Jul 16, 2024
1 parent 99458e8 commit e163039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/frontend_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def parse_version_string(cls, value: str) -> tuple[str, str, str]:
Raises:
argparse.ArgumentTypeError: If the version string is invalid.
"""
VERSION_PATTERN = r"^([a-zA-Z0-9][a-zA-Z0-9-]{0,38})/([a-zA-Z0-9_.-]+)@(\d+\.\d+\.\d+|latest)$"
VERSION_PATTERN = r"^([a-zA-Z0-9][a-zA-Z0-9-]{0,38})/([a-zA-Z0-9_.-]+)@(v?\d+\.\d+\.\d+|latest)$"
match_result = re.match(VERSION_PATTERN, value)
if match_result is None:
raise argparse.ArgumentTypeError(f"Invalid version string: {value}")
Expand Down

0 comments on commit e163039

Please sign in to comment.