Skip to content

Commit

Permalink
Merge pull request #163 from danielgtaylor/fix-completion-multi-arg
Browse files Browse the repository at this point in the history
fix: completion for multi-variable templates
  • Loading branch information
danielgtaylor authored Jan 13, 2023
2 parents a6559de + 049ed6c commit 2a9db11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func matchTemplate(url, template string) string {
matcher := regexp.MustCompile(templateVarRegex.ReplaceAllString(tplPart, ".*"))
if matcher.MatchString(urlPart) && urlPart != "" {
tplParts[i] = urlPart
continue
}
} else if urlPart == tplPart {
// This is an exact path match.
Expand Down

0 comments on commit 2a9db11

Please sign in to comment.