From 020dd53e837420e93877428fcf0fb8ba6f4fe1e3 Mon Sep 17 00:00:00 2001 From: Maxime Liquet <35924738+maximlt@users.noreply.github.com> Date: Sat, 19 Oct 2024 10:25:30 +0200 Subject: [PATCH] fix project name validation (#431) --- dodo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dodo.py b/dodo.py index 6aadd328c..c09170213 100644 --- a/dodo.py +++ b/dodo.py @@ -1116,7 +1116,7 @@ def validate_project_file(name): f'Project `name` {project_name!r} does not match the directory ' f'name {name}', ) - if not all(c.islower() or c == "_" for c in project_name): + if not project_name.replace('_', '').isalnum(): complain( f'Project `name` {project_name!r} must only have lower-cased letters ' 'and underscores',