Skip to content

Commit

Permalink
Merge pull request #18617 from nikitakurakinGit/fixregex
Browse files Browse the repository at this point in the history
fixed unescaped local host regex
  • Loading branch information
spowelljr authored Apr 11, 2024
2 parents 7038a47 + a007b93 commit 6add3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/minikube/cmd/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var (
dashboardExposedPort int
// 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
Expand Down

0 comments on commit 6add3e1

Please sign in to comment.