remove trailing space in domain_name and email

This commit is contained in:
Hoai-Thu Vuong 2023-02-15 16:55:52 +07:00
parent 7af2d73a8c
commit 9167891600
No known key found for this signature in database
GPG Key ID: 455894818273D4D2
2 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,7 @@
"description": "Behold My Awesome Project!", "description": "Behold My Awesome Project!",
"author_name": "Daniel Roy Greenfeld", "author_name": "Daniel Roy Greenfeld",
"domain_name": "example.com", "domain_name": "example.com",
"email": "{{ cookiecutter.author_name.lower()|replace(' ', '-') }}@example.com", "email": "{{ cookiecutter.author_name.lower() | trim() |replace(' ', '-') }}@{{ cookiecutter.domain_name.lower() | trim() }}",
"version": "0.1.0", "version": "0.1.0",
"open_source_license": [ "open_source_license": [
"MIT", "MIT",

View File

@ -80,3 +80,8 @@ if (
"Mail Service for sending emails." "Mail Service for sending emails."
) )
sys.exit(1) sys.exit(1)
"""
{{ cookiecutter.update({ "domain_name": cookiecutter.domain_name | trim }) }}
{{ cookiecutter.update({ "email": cookiecutter.email | trim }) }}
"""