Skip to content

Commit 9251815

Browse files
authored
Inaccurate result when asking for authored issues (#6420)
Fixes #6362
1 parent 61818c2 commit 9251815

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lm/tools/searchTools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ You are getting ready to make a GitHub search query. Given a natural language qu
234234
if (labels.some(label => freeForm.includes(label) || label.includes(freeForm))) {
235235
return '';
236236
}
237-
if (Object.keys(githubSearchSyntax).includes(freeForm)) {
237+
if (Object.keys(githubSearchSyntax).find(searchPart => freeForm.includes(searchPart) || searchPart.includes(freeForm))) {
238238
return '';
239239
}
240240
return freeForm;

0 commit comments

Comments
 (0)