Skip to content

Commit 35cb31e

Browse files
authored
Merge pull request #10 from cdr/agent-number
Allow agent names to begin with a number
2 parents 5beac91 + e316c80 commit 35cb31e

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)