Skip to content

Commit

Permalink
fix project name validation (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt authored Oct 19, 2024
1 parent c553eaf commit 020dd53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 020dd53

Please sign in to comment.