We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab0ada3 commit 4ef8d9fCopy full SHA for 4ef8d9f
libexec/search.ts
@@ -16,14 +16,14 @@ for await (const pkg of pantry.ls()) {
16
let output = false
17
const bins: string[] = []
18
for (const bin of await pantry.getProvides(pkg)) {
19
- if (bin.startsWith(query)) {
+ if (bin.includes(query)) {
20
output = true
21
bins.push(bin)
22
}
23
24
if (output) {
25
print(`${pkg.project}: ${bins.join(', ')}`)
26
- } else if (pkg.project.startsWith(query)) {
+ } else if (pkg.project.includes(query)) {
27
print(pkg.project.trim())
28
29
0 commit comments