Skip to content

Commit 359d135

Browse files
fix(ps): match controller regexp for ps names (#89)
1 parent f2b2459 commit 359d135

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/ps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func PsScale(appID string, targets []string) error {
4141
}
4242

4343
targetMap := make(map[string]int)
44-
regex := regexp.MustCompile("^([A-z]+)=([0-9]+)$")
44+
regex := regexp.MustCompile("^([a-z0-9]+)=([0-9]+)$")
4545

4646
for _, target := range targets {
4747
if regex.MatchString(target) {

0 commit comments

Comments
 (0)