Skip to content

Commit 9ab5459

Browse files
authored
Update github org name regex (#394)
* Updating the regex string to match the requirements of github. * Change regex to allow single character organization names.
1 parent 0fdc5c6 commit 9ab5459

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

copier.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ project_organization:
3838
help: What github organization will your project live under?
3939
default: my_organization
4040
validator: >-
41-
{% if not (project_organization | regex_search('^[a-z][a-z0-9\_\-]+$')) %}
42-
Must use a lowercase letter followed by one or more of (a-z, 0-9, _, -).
41+
{% if not (project_organization | regex_search('^[a-zA-Z0-9][a-zA-Z0-9\-]*$')) %}
42+
The name may only contain alphanumeric characters or single hyphens, and cannot begin or end with a hyphen.
4343
{% endif %}
4444
4545
author_name:

0 commit comments

Comments
 (0)