Skip to content

Commit 731b831

Browse files
committed
Allow dots in repo names
1 parent e47f7de commit 731b831

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

copier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repo_name:
3232
help: Name of the repository
3333
default: "{{ package_name | replace('_', '-') }}"
3434
validator: >-
35-
{% if not (repo_name | regex_search('^[a-zA-Z][a-zA-Z_\\-0-9]+$')) %}
35+
{% if not (repo_name | regex_search('^[a-zA-Z][a-zA-Z_\\.\\-0-9]+$')) %}
3636
{{ repo_name }} is not a valid repo name
3737
{% endif %}
3838

tests/test_example.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ def test_bad_repo_name(tmp_path: Path):
6464
copy_project(tmp_path, repo_name="bad:thing")
6565

6666

67+
def test_dots_in_package_name(tmp_path: Path):
68+
copy_project(tmp_path, repo_name="dots.in.name")
69+
70+
6771
def test_example_repo_updates(tmp_path: Path):
6872
generated_path = tmp_path / "generated"
6973
example_url = (

0 commit comments

Comments
 (0)