Skip to content

Commit 0578588

Browse files
committed
Change app url name order
1 parent b5d1f6a commit 0578588

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/workspaceapps.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ var (
198198
// Remove the "starts with" and "ends with" regex components.
199199
nameRegex = strings.Trim(httpapi.UsernameValidRegex.String(), "^$")
200200
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)$`,
201+
// AppName--WorkspaceName--AgentName--UserName
202+
`^(?P<AppName>%[1]s)--(?P<WorkspaceName>%[1]s)(--(?P<AgentName>%[1]s))?--(?P<UserName>%[1]s)$`,
203203
nameRegex))
204204
)
205205

0 commit comments

Comments
 (0)