Skip to content

Commit

Permalink
make man macos compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
kjubybot committed Sep 20, 2024
1 parent f59149a commit c258c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/actions/tools/man/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func ActionPages() carapace.Action {
return carapace.ActionCallback(func(c carapace.Context) carapace.Action {
return carapace.ActionExecCommand("man", "-k", c.Value)(func(output []byte) carapace.Action {
r := regexp.MustCompile(`^(?P<name>.*) \(\d+\) +- (?P<description>.*)$`)
r := regexp.MustCompile(`^(?P<name>.*?) ?\(\d+\).* +- (?P<description>.*)$`)

vals := make([]string, 0)
for _, line := range strings.Split(string(output), "\n") {
Expand Down

0 comments on commit c258c9c

Please sign in to comment.