aboutsummaryrefslogtreecommitdiff
path: root/cli.py
diff options
context:
space:
mode:
authorGravatar Evgenii <ekublin@gmail.com> 2023-11-03 13:07:03 +0300
committerGravatar GitHub <noreply@github.com> 2023-11-03 11:07:03 +0100
commitaef512e49ea04c0718437986fbb81e9ac316673d (patch)
tree6c8edbb87b8f53308de0827ab2fa6e8298cc6c37 /cli.py
parentsgpt entering the arena (#6087) (diff)
downloadAuto-GPT-aef512e49ea04c0718437986fbb81e9ac316673d.tar.gz
Auto-GPT-aef512e49ea04c0718437986fbb81e9ac316673d.tar.bz2
Auto-GPT-aef512e49ea04c0718437986fbb81e9ac316673d.zip
Improvement of the regular expression (#6096)
Diffstat (limited to 'cli.py')
-rw-r--r--cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.py b/cli.py
index 486bdfe64..0887e4c4f 100644
--- a/cli.py
+++ b/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 -_",