Skip to content

Commit

Permalink
trim prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jklaw90 committed Jul 26, 2023
1 parent b0a0dae commit b900188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/k8url.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func output(obj runtime.Object, templates []string, urlTemplates []string) {

for _, url := range urls {
// TODO cleanup - template will be a single string we need to split somehow...
allUrls := strings.Split(url, "https://")
allUrls := strings.Split(strings.TrimPrefix(url, "https://"), "https://")
for _, u := range allUrls {
browser.OpenURL(fmt.Sprintf("https://%s", u)) // nolint: errcheck
}
Expand Down

0 comments on commit b900188

Please sign in to comment.