We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b2c035 commit 40ea68cCopy full SHA for 40ea68c
pkg/cmd/internal/issues/issues.go
@@ -496,7 +496,7 @@ func HelpCommandAsLink(title, href string) func(r *Renderer) {
496
func filterByPrefixTitleMatch(
497
result *github.IssuesSearchResult, expectedTitle string,
498
) []github.Issue {
499
- expectedTitleRegex := regexp.MustCompile(`^` + expectedTitle + `(\s+|$)`)
+ expectedTitleRegex := regexp.MustCompile(`^` + regexp.QuoteMeta(expectedTitle) + `(\s+|$)`)
500
var issues []github.Issue
501
for _, issue := range result.Issues {
502
if title := issue.Title; title != nil && expectedTitleRegex.MatchString(*title) {
0 commit comments