mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 05:54:26 +01:00
Improvement of the regular expression (#6096)
This commit is contained in:
2
cli.py
2
cli.py
@@ -219,7 +219,7 @@ def create(agent_name):
|
||||
import re
|
||||
import shutil
|
||||
|
||||
if not re.match("^[a-zA-Z0-9_-]*$", agent_name):
|
||||
if not re.match("\W*$", agent_name):
|
||||
click.echo(
|
||||
click.style(
|
||||
f"😞 Agent name '{agent_name}' is not valid. It should not contain spaces or special characters other than -_",
|
||||
|
||||
Reference in New Issue
Block a user