mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 17:47:08 +03:00
Disallow backslashes in author name
This commit is contained in:
parent
3cfafcf347
commit
f4cadeec97
|
@ -11,6 +11,9 @@ project_slug = '{{ cookiecutter.project_slug }}'
|
|||
if hasattr(project_slug, 'isidentifier'):
|
||||
assert project_slug.isidentifier(), "'{}' project slug is not a valid Python identifier.".format(project_slug)
|
||||
|
||||
assert "\\" not in "{{ cookiecutter.author_name }}", "Don't include backslashes in author name."
|
||||
|
||||
|
||||
using_docker = '{{ cookiecutter.use_docker }}'.lower()
|
||||
if using_docker == 'n':
|
||||
TERMINATOR = "\x1b[0m"
|
||||
|
|
Loading…
Reference in New Issue
Block a user