Skip to content

Commit

Permalink
Workspace: Normalize dots in hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorNelson committed Jan 25, 2024
1 parent 2f5a5e0 commit bb45b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo_plugin/api/v1/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def start_container(user, dojo_challenge, practice):

hostname = "~".join((["practice"] if practice else []) + [
dojo_challenge.module.id,
re.sub("[\s-]+", "-", re.sub("[^a-z0-9\s-]", "", dojo_challenge.name.lower()))
re.sub("[\s.-]+", "-", re.sub("[^a-z0-9\s.-]", "", dojo_challenge.name.lower()))
])[:64]

devices = []
Expand Down

0 comments on commit bb45b14

Please sign in to comment.