Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
e1630391
"deploy/git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "9c6ff0a73770d8aaa67d21da144eb3115eebe155"
Commit
e1630391
authored
Jul 16, 2024
by
comfyanonymous
Browse files
Allow version names like v0.0.1 for the FrontendManager.
parent
99458e8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/frontend_management.py
app/frontend_management.py
+1
-1
No files found.
app/frontend_management.py
View file @
e1630391
...
@@ -123,7 +123,7 @@ class FrontendManager:
...
@@ -123,7 +123,7 @@ class FrontendManager:
Raises:
Raises:
argparse.ArgumentTypeError: If the version string is invalid.
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
)
match_result
=
re
.
match
(
VERSION_PATTERN
,
value
)
if
match_result
is
None
:
if
match_result
is
None
:
raise
argparse
.
ArgumentTypeError
(
f
"Invalid version string:
{
value
}
"
)
raise
argparse
.
ArgumentTypeError
(
f
"Invalid version string:
{
value
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment