From e1630391d6d190c3dd9ef4609f0c84af72be54af Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Tue, 16 Jul 2024 11:29:38 -0400 Subject: [PATCH] Allow version names like v0.0.1 for the FrontendManager. --- app/frontend_management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/frontend_management.py b/app/frontend_management.py index 0855f416..5452f6e1 100644 --- a/app/frontend_management.py +++ b/app/frontend_management.py @@ -123,7 +123,7 @@ class FrontendManager: 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}")