We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5d1f6a commit 0578588Copy full SHA for 0578588
coderd/workspaceapps.go
@@ -198,8 +198,8 @@ var (
198
// Remove the "starts with" and "ends with" regex components.
199
nameRegex = strings.Trim(httpapi.UsernameValidRegex.String(), "^$")
200
appURL = regexp.MustCompile(fmt.Sprintf(
201
- // {USERNAME}--{WORKSPACE_NAME}}--{{AGENT_NAME}}--{{PORT}}
202
- `^(?P<UserName>%[1]s)--(?P<WorkspaceName>%[1]s)(--(?P<AgentName>%[1]s))?--(?P<AppName>%[1]s)$`,
+ // AppName--WorkspaceName--AgentName--UserName
+ `^(?P<AppName>%[1]s)--(?P<WorkspaceName>%[1]s)(--(?P<AgentName>%[1]s))?--(?P<UserName>%[1]s)$`,
203
nameRegex))
204
)
205
0 commit comments