Merge pull request #14134 from ckannon/fixes/12595
Accept space before port in DashboardProxy Regexpull/14137/head
commit
48c1e3f9af
|
|
@ -47,9 +47,9 @@ import (
|
|||
var (
|
||||
dashboardURLMode bool
|
||||
dashboardExposedPort int
|
||||
// Matches: 127.0.0.1:8001
|
||||
// Matches: "127.0.0.1:8001" or "127.0.0.1 40012" etc.
|
||||
// TODO(tstromberg): Get kubectl to implement a stable supported output format.
|
||||
hostPortRe = regexp.MustCompile(`127.0.0.1:\d{4,}`)
|
||||
hostPortRe = regexp.MustCompile(`127.0.0.1(:| )\d{4,}`)
|
||||
)
|
||||
|
||||
// dashboardCmd represents the dashboard command
|
||||
|
|
|
|||
Loading…
Reference in New Issue