Skip to content

Commit

Permalink
fixes #930 - advance search should consider summary and description both
Browse files Browse the repository at this point in the history
  • Loading branch information
mrin9 committed Sep 20, 2024
1 parent 24b0d1f commit 8269b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/common-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function advancedSearch(searchVal, allSpecTags, searchOptions = []) {
stringToSearch = path.path;
}
if (searchOptions.includes('search-api-descr')) {
stringToSearch = `${stringToSearch} ${path.summary || path.description || ''}`;
stringToSearch = `${stringToSearch} ${path.summary || '' + path.description || ''}`;
}
if (searchOptions.includes('search-api-params')) {
stringToSearch = `${stringToSearch} ${path.parameters?.map((v) => v.name).join(' ') || ''}`;
Expand Down

0 comments on commit 8269b5f

Please sign in to comment.