diff --git a/build_scripts/comfy/comfy_proxy.py b/build_scripts/comfy/comfy_proxy.py index ee4d36f5..930c18d3 100755 --- a/build_scripts/comfy/comfy_proxy.py +++ b/build_scripts/comfy/comfy_proxy.py @@ -1174,7 +1174,7 @@ if is_on_ec2: return web.Response(status=200, content_type='application/json', body=json.dumps({"result": False, "message": f"{workflow_name} is not allowed"})) - if not re.match(r'^[A-Za-z][A-Za-z0-9_]*$', workflow_name): + if not re.match(r'^[A-Za-z][A-Za-z0-9]*$', workflow_name): return web.Response(status=200, content_type='application/json', body=json.dumps({"result": False, "message": f"{workflow_name} is invalid name"})) diff --git a/infrastructure/src/shared/schema.ts b/infrastructure/src/shared/schema.ts index f468adad..1d754d37 100644 --- a/infrastructure/src/shared/schema.ts +++ b/infrastructure/src/shared/schema.ts @@ -591,7 +591,7 @@ export const SCHEMA_WORKFLOW_NAME: JsonSchema = { type: JsonSchemaType.STRING, minLength: 1, maxLength: 20, - pattern: '^[A-Za-z][A-Za-z0-9_]*$', + pattern: '^[A-Za-z][A-Za-z0-9]*$', description: 'Name of workflow', };