Skip to content

Commit e316c80

Browse files
committed
allow agent names to begin with a number
1 parent 5beac91 commit e316c80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cmd/bind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var (
2323
DefaultCloudURL = "https://cloud.coder.com"
2424
)
2525

26-
var codeServerNameRx = regexp.MustCompile("^[a-z][a-z0-9_]{0,50}$")
26+
var codeServerNameRx = regexp.MustCompile("^[a-z0-9][a-z0-9_]{0,50}$")
2727

2828
type bindCmd struct {
2929
cloudURL string

0 commit comments

Comments
 (0)