From 9ab5459548d1137c2c3a2d08b8b5f440a0c0647d Mon Sep 17 00:00:00 2001 From: Drew Oldag <47493171+drewoldag@users.noreply.github.com> Date: Tue, 6 Feb 2024 14:41:53 -0800 Subject: [PATCH] Update github org name regex (#394) * Updating the regex string to match the requirements of github. * Change regex to allow single character organization names. --- copier.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copier.yml b/copier.yml index dc09fc53..4ded6c21 100644 --- a/copier.yml +++ b/copier.yml @@ -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: