Skip to content

Commit

Permalink
Update github org name regex (#394)
Browse files Browse the repository at this point in the history
* Updating the regex string to match the requirements of github.

* Change regex to allow single character organization names.
  • Loading branch information
drewoldag authored Feb 6, 2024
1 parent 0fdc5c6 commit 9ab5459
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ project_organization:
help: What github organization will your project live under?
default: my_organization
validator: >-
{% if not (project_organization | regex_search('^[a-z][a-z0-9\_\-]+$')) %}
Must use a lowercase letter followed by one or more of (a-z, 0-9, _, -).
{% if not (project_organization | regex_search('^[a-zA-Z0-9][a-zA-Z0-9\-]*$')) %}
The name may only contain alphanumeric characters or single hyphens, and cannot begin or end with a hyphen.
{% endif %}
author_name:
Expand Down

0 comments on commit 9ab5459

Please sign in to comment.