Skip to content

Commit

Permalink
feat: include keywords in package filtering (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI authored May 19, 2024
1 parent 1453159 commit f5b7bbe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/services/packages_fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,13 @@ export class PackagesFetcher {
return packages.filter((pkg) => {
const name = pkg.name.toLowerCase()
const description = pkg.description.toLowerCase()
const keywords = pkg.keywords?.join(' ') || ''

return name.includes(loweredSearch) || description.includes(loweredSearch)
return (
name.includes(loweredSearch) ||
description.includes(loweredSearch) ||
keywords.includes(loweredSearch)
)
})
}

Expand Down
5 changes: 5 additions & 0 deletions content/packages/adonisjs-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ website: https://github.com/KABBOUCHI/adonisjs-jobs
learn_more: ''
category: Extensions
type: 3rd-party
keywords:
- queue
- bullmq
- background-jobs
- redis
maintainers:
- name: Georges KABBOUCHI
github: KABBOUCHI
Expand Down

0 comments on commit f5b7bbe

Please sign in to comment.