Skip to content

Commit

Permalink
Replace spaces with underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbvll committed Apr 10, 2024
1 parent 2b23c60 commit cbd0159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py/flwr/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def sanitize_project_name(name: str) -> str:
ensures it starts with a valid character.
"""
# Replace '-' with '_'
name_with_underscores = name.replace("-", "_")
name_with_underscores = name.replace("-", "_").replace(" ", "_")

# Allowed characters in a module name: letters, digits, underscore
allowed_chars = set(
Expand Down

0 comments on commit cbd0159

Please sign in to comment.