Skip to content

Commit ee24e91

Browse files
committed
add a regex to make sure github organization does not have any spaces
1 parent 344f580 commit ee24e91

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

copier/questions/package_details.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ keywords:
2121
help: Add keywords to make your package findable on PyPI
2222
github_organization:
2323
type: str
24-
placeholder: "<my-github-organization>"
24+
placeholder: "your-github-username or your-github-organization"
2525
help: Enter the name of your GitHub username or organization
2626
validator: >-
27-
{% if not github_organization %}
28-
This field cannot be empty
27+
{% if not (github_organization | regex_search('^\\S*$')) %}
28+
Username or organization cannot include spaces
2929
{% endif %}
3030
email:
3131
type: str

0 commit comments

Comments
 (0)