Skip to content

Sanitize project name when using directory name#47

Merged
Mcrich23 merged 2 commits intoMcrich23:mainfrom
oxisto:oxisto/sanitize-project-name
Feb 4, 2026
Merged

Sanitize project name when using directory name#47
Mcrich23 merged 2 commits intoMcrich23:mainfrom
oxisto:oxisto/sanitize-project-name

Conversation

@oxisto
Copy link
Contributor

@oxisto oxisto commented Jan 29, 2026

We use the directory name as project name if none is specified. However directory names can contain a '.', which seems an invalid character for container names - at least I get errors when creating from .devcontainers.

This PR just replaces '.' with '_', however there might be more forbidden characters we should replace?

We use the directory name as project name if none is specified. However directory names can contain a '.', which seems an invalid character for container names - at least I get errors when creating from `.devcontainers`.

This PR just replaces '.'  with '_', however there might be more forbidden characters we should replace?
Copy link
Owner

@Mcrich23 Mcrich23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Mcrich23 Mcrich23 merged commit e453d8b into Mcrich23:main Feb 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants